---
id: docs
layout: docs
title: Lodash Documentation
version: 2.4.2
---

{% raw %}
<div class="toc-container">
<div>
<h2><code>Arrays</code></h2>
<ul>
<li><a href="#compact"><code><span class="subtle-punctuation">_.</span>compact</code></a></li>
<li><a href="#difference"><code><span class="subtle-punctuation">_.</span>difference</code></a></li>
<li><a href="#rest" class="alias"><code><span class="subtle-punctuation">_.</span>drop</code> -&gt; <code>rest</code></a></li>
<li><a href="#findIndex"><code><span class="subtle-punctuation">_.</span>findIndex</code></a></li>
<li><a href="#findLastIndex"><code><span class="subtle-punctuation">_.</span>findLastIndex</code></a></li>
<li><a href="#first"><code><span class="subtle-punctuation">_.</span>first</code></a></li>
<li><a href="#flatten"><code><span class="subtle-punctuation">_.</span>flatten</code></a></li>
<li><a href="#first" class="alias"><code><span class="subtle-punctuation">_.</span>head</code> -&gt; <code>first</code></a></li>
<li><a href="#indexOf"><code><span class="subtle-punctuation">_.</span>indexOf</code></a></li>
<li><a href="#initial"><code><span class="subtle-punctuation">_.</span>initial</code></a></li>
<li><a href="#intersection"><code><span class="subtle-punctuation">_.</span>intersection</code></a></li>
<li><a href="#last"><code><span class="subtle-punctuation">_.</span>last</code></a></li>
<li><a href="#lastIndexOf"><code><span class="subtle-punctuation">_.</span>lastIndexOf</code></a></li>
<li><a href="#zipObject" class="alias"><code><span class="subtle-punctuation">_.</span>object</code> -&gt; <code>zipObject</code></a></li>
<li><a href="#pull"><code><span class="subtle-punctuation">_.</span>pull</code></a></li>
<li><a href="#range"><code><span class="subtle-punctuation">_.</span>range</code></a></li>
<li><a href="#remove"><code><span class="subtle-punctuation">_.</span>remove</code></a></li>
<li><a href="#rest"><code><span class="subtle-punctuation">_.</span>rest</code></a></li>
<li><a href="#sortedIndex"><code><span class="subtle-punctuation">_.</span>sortedIndex</code></a></li>
<li><a href="#rest" class="alias"><code><span class="subtle-punctuation">_.</span>tail</code> -&gt; <code>rest</code></a></li>
<li><a href="#first" class="alias"><code><span class="subtle-punctuation">_.</span>take</code> -&gt; <code>first</code></a></li>
<li><a href="#union"><code><span class="subtle-punctuation">_.</span>union</code></a></li>
<li><a href="#uniq"><code><span class="subtle-punctuation">_.</span>uniq</code></a></li>
<li><a href="#uniq" class="alias"><code><span class="subtle-punctuation">_.</span>unique</code> -&gt; <code>uniq</code></a></li>
<li><a href="#zip" class="alias"><code><span class="subtle-punctuation">_.</span>unzip</code> -&gt; <code>zip</code></a></li>
<li><a href="#without"><code><span class="subtle-punctuation">_.</span>without</code></a></li>
<li><a href="#xor"><code><span class="subtle-punctuation">_.</span>xor</code></a></li>
<li><a href="#zip"><code><span class="subtle-punctuation">_.</span>zip</code></a></li>
<li><a href="#zipObject"><code><span class="subtle-punctuation">_.</span>zipObject</code></a></li>
</ul>
</div>
<div>
<h2><code>Chaining</code></h2>
<ul>
<li><a href="#lodash"><code>_</code></a></li>
<li><a href="#chain"><code><span class="subtle-punctuation">_.</span>chain</code></a></li>
<li><a href="#tap"><code><span class="subtle-punctuation">_.</span>tap</code></a></li>
<li><a href="#prototype-chain"><code><span class="subtle-punctuation">_.</span>prototype.chain</code></a></li>
<li><a href="#prototype-toString"><code><span class="subtle-punctuation">_.</span>prototype.toString</code></a></li>
<li><a href="#prototype-valueOf" class="alias"><code><span class="subtle-punctuation">_.</span>prototype.value</code> -&gt; <code>valueOf</code></a></li>
<li><a href="#prototype-valueOf"><code><span class="subtle-punctuation">_.</span>prototype.valueOf</code></a></li>
</ul>
</div>
<div>
<h2><code>Collections</code></h2>
<ul>
<li><a href="#every" class="alias"><code><span class="subtle-punctuation">_.</span>all</code> -&gt; <code>every</code></a></li>
<li><a href="#some" class="alias"><code><span class="subtle-punctuation">_.</span>any</code> -&gt; <code>some</code></a></li>
<li><a href="#at"><code><span class="subtle-punctuation">_.</span>at</code></a></li>
<li><a href="#map" class="alias"><code><span class="subtle-punctuation">_.</span>collect</code> -&gt; <code>map</code></a></li>
<li><a href="#contains"><code><span class="subtle-punctuation">_.</span>contains</code></a></li>
<li><a href="#countBy"><code><span class="subtle-punctuation">_.</span>countBy</code></a></li>
<li><a href="#find" class="alias"><code><span class="subtle-punctuation">_.</span>detect</code> -&gt; <code>find</code></a></li>
<li><a href="#forEach" class="alias"><code><span class="subtle-punctuation">_.</span>each</code> -&gt; <code>forEach</code></a></li>
<li><a href="#forEachRight" class="alias"><code><span class="subtle-punctuation">_.</span>eachRight</code> -&gt; <code>forEachRight</code></a></li>
<li><a href="#every"><code><span class="subtle-punctuation">_.</span>every</code></a></li>
<li><a href="#filter"><code><span class="subtle-punctuation">_.</span>filter</code></a></li>
<li><a href="#find"><code><span class="subtle-punctuation">_.</span>find</code></a></li>
<li><a href="#findLast"><code><span class="subtle-punctuation">_.</span>findLast</code></a></li>
<li><a href="#find" class="alias"><code><span class="subtle-punctuation">_.</span>findWhere</code> -&gt; <code>find</code></a></li>
<li><a href="#reduce" class="alias"><code><span class="subtle-punctuation">_.</span>foldl</code> -&gt; <code>reduce</code></a></li>
<li><a href="#reduceRight" class="alias"><code><span class="subtle-punctuation">_.</span>foldr</code> -&gt; <code>reduceRight</code></a></li>
<li><a href="#forEach"><code><span class="subtle-punctuation">_.</span>forEach</code></a></li>
<li><a href="#forEachRight"><code><span class="subtle-punctuation">_.</span>forEachRight</code></a></li>
<li><a href="#groupBy"><code><span class="subtle-punctuation">_.</span>groupBy</code></a></li>
<li><a href="#contains" class="alias"><code><span class="subtle-punctuation">_.</span>include</code> -&gt; <code>contains</code></a></li>
<li><a href="#indexBy"><code><span class="subtle-punctuation">_.</span>indexBy</code></a></li>
<li><a href="#reduce" class="alias"><code><span class="subtle-punctuation">_.</span>inject</code> -&gt; <code>reduce</code></a></li>
<li><a href="#invoke"><code><span class="subtle-punctuation">_.</span>invoke</code></a></li>
<li><a href="#map"><code><span class="subtle-punctuation">_.</span>map</code></a></li>
<li><a href="#max"><code><span class="subtle-punctuation">_.</span>max</code></a></li>
<li><a href="#min"><code><span class="subtle-punctuation">_.</span>min</code></a></li>
<li><a href="#pluck"><code><span class="subtle-punctuation">_.</span>pluck</code></a></li>
<li><a href="#reduce"><code><span class="subtle-punctuation">_.</span>reduce</code></a></li>
<li><a href="#reduceRight"><code><span class="subtle-punctuation">_.</span>reduceRight</code></a></li>
<li><a href="#reject"><code><span class="subtle-punctuation">_.</span>reject</code></a></li>
<li><a href="#sample"><code><span class="subtle-punctuation">_.</span>sample</code></a></li>
<li><a href="#filter" class="alias"><code><span class="subtle-punctuation">_.</span>select</code> -&gt; <code>filter</code></a></li>
<li><a href="#shuffle"><code><span class="subtle-punctuation">_.</span>shuffle</code></a></li>
<li><a href="#size"><code><span class="subtle-punctuation">_.</span>size</code></a></li>
<li><a href="#some"><code><span class="subtle-punctuation">_.</span>some</code></a></li>
<li><a href="#sortBy"><code><span class="subtle-punctuation">_.</span>sortBy</code></a></li>
<li><a href="#toArray"><code><span class="subtle-punctuation">_.</span>toArray</code></a></li>
<li><a href="#where"><code><span class="subtle-punctuation">_.</span>where</code></a></li>
</ul>
</div>
<div>
<h2><code>Functions</code></h2>
<ul>
<li><a href="#after"><code><span class="subtle-punctuation">_.</span>after</code></a></li>
<li><a href="#bind"><code><span class="subtle-punctuation">_.</span>bind</code></a></li>
<li><a href="#bindAll"><code><span class="subtle-punctuation">_.</span>bindAll</code></a></li>
<li><a href="#bindKey"><code><span class="subtle-punctuation">_.</span>bindKey</code></a></li>
<li><a href="#compose"><code><span class="subtle-punctuation">_.</span>compose</code></a></li>
<li><a href="#curry"><code><span class="subtle-punctuation">_.</span>curry</code></a></li>
<li><a href="#debounce"><code><span class="subtle-punctuation">_.</span>debounce</code></a></li>
<li><a href="#defer"><code><span class="subtle-punctuation">_.</span>defer</code></a></li>
<li><a href="#delay"><code><span class="subtle-punctuation">_.</span>delay</code></a></li>
<li><a href="#memoize"><code><span class="subtle-punctuation">_.</span>memoize</code></a></li>
<li><a href="#once"><code><span class="subtle-punctuation">_.</span>once</code></a></li>
<li><a href="#partial"><code><span class="subtle-punctuation">_.</span>partial</code></a></li>
<li><a href="#partialRight"><code><span class="subtle-punctuation">_.</span>partialRight</code></a></li>
<li><a href="#throttle"><code><span class="subtle-punctuation">_.</span>throttle</code></a></li>
<li><a href="#wrap"><code><span class="subtle-punctuation">_.</span>wrap</code></a></li>
</ul>
</div>
<div>
<h2><code>Objects</code></h2>
<ul>
<li><a href="#assign"><code><span class="subtle-punctuation">_.</span>assign</code></a></li>
<li><a href="#clone"><code><span class="subtle-punctuation">_.</span>clone</code></a></li>
<li><a href="#cloneDeep"><code><span class="subtle-punctuation">_.</span>cloneDeep</code></a></li>
<li><a href="#create"><code><span class="subtle-punctuation">_.</span>create</code></a></li>
<li><a href="#defaults"><code><span class="subtle-punctuation">_.</span>defaults</code></a></li>
<li><a href="#assign" class="alias"><code><span class="subtle-punctuation">_.</span>extend</code> -&gt; <code>assign</code></a></li>
<li><a href="#findKey"><code><span class="subtle-punctuation">_.</span>findKey</code></a></li>
<li><a href="#findLastKey"><code><span class="subtle-punctuation">_.</span>findLastKey</code></a></li>
<li><a href="#forIn"><code><span class="subtle-punctuation">_.</span>forIn</code></a></li>
<li><a href="#forInRight"><code><span class="subtle-punctuation">_.</span>forInRight</code></a></li>
<li><a href="#forOwn"><code><span class="subtle-punctuation">_.</span>forOwn</code></a></li>
<li><a href="#forOwnRight"><code><span class="subtle-punctuation">_.</span>forOwnRight</code></a></li>
<li><a href="#functions"><code><span class="subtle-punctuation">_.</span>functions</code></a></li>
<li><a href="#has"><code><span class="subtle-punctuation">_.</span>has</code></a></li>
<li><a href="#invert"><code><span class="subtle-punctuation">_.</span>invert</code></a></li>
<li><a href="#isArguments"><code><span class="subtle-punctuation">_.</span>isArguments</code></a></li>
<li><a href="#isArray"><code><span class="subtle-punctuation">_.</span>isArray</code></a></li>
<li><a href="#isBoolean"><code><span class="subtle-punctuation">_.</span>isBoolean</code></a></li>
<li><a href="#isDate"><code><span class="subtle-punctuation">_.</span>isDate</code></a></li>
<li><a href="#isElement"><code><span class="subtle-punctuation">_.</span>isElement</code></a></li>
<li><a href="#isEmpty"><code><span class="subtle-punctuation">_.</span>isEmpty</code></a></li>
<li><a href="#isEqual"><code><span class="subtle-punctuation">_.</span>isEqual</code></a></li>
<li><a href="#isFinite"><code><span class="subtle-punctuation">_.</span>isFinite</code></a></li>
<li><a href="#isFunction"><code><span class="subtle-punctuation">_.</span>isFunction</code></a></li>
<li><a href="#isNaN"><code><span class="subtle-punctuation">_.</span>isNaN</code></a></li>
<li><a href="#isNull"><code><span class="subtle-punctuation">_.</span>isNull</code></a></li>
<li><a href="#isNumber"><code><span class="subtle-punctuation">_.</span>isNumber</code></a></li>
<li><a href="#isObject"><code><span class="subtle-punctuation">_.</span>isObject</code></a></li>
<li><a href="#isPlainObject"><code><span class="subtle-punctuation">_.</span>isPlainObject</code></a></li>
<li><a href="#isRegExp"><code><span class="subtle-punctuation">_.</span>isRegExp</code></a></li>
<li><a href="#isString"><code><span class="subtle-punctuation">_.</span>isString</code></a></li>
<li><a href="#isUndefined"><code><span class="subtle-punctuation">_.</span>isUndefined</code></a></li>
<li><a href="#keys"><code><span class="subtle-punctuation">_.</span>keys</code></a></li>
<li><a href="#mapValues"><code><span class="subtle-punctuation">_.</span>mapValues</code></a></li>
<li><a href="#merge"><code><span class="subtle-punctuation">_.</span>merge</code></a></li>
<li><a href="#functions" class="alias"><code><span class="subtle-punctuation">_.</span>methods</code> -&gt; <code>functions</code></a></li>
<li><a href="#omit"><code><span class="subtle-punctuation">_.</span>omit</code></a></li>
<li><a href="#pairs"><code><span class="subtle-punctuation">_.</span>pairs</code></a></li>
<li><a href="#pick"><code><span class="subtle-punctuation">_.</span>pick</code></a></li>
<li><a href="#transform"><code><span class="subtle-punctuation">_.</span>transform</code></a></li>
<li><a href="#values"><code><span class="subtle-punctuation">_.</span>values</code></a></li>
</ul>
</div>
<div>
<h2><code>Utilities</code></h2>
<ul>
<li><a href="#constant"><code><span class="subtle-punctuation">_.</span>constant</code></a></li>
<li><a href="#createCallback"><code><span class="subtle-punctuation">_.</span>createCallback</code></a></li>
<li><a href="#escape"><code><span class="subtle-punctuation">_.</span>escape</code></a></li>
<li><a href="#identity"><code><span class="subtle-punctuation">_.</span>identity</code></a></li>
<li><a href="#mixin"><code><span class="subtle-punctuation">_.</span>mixin</code></a></li>
<li><a href="#noConflict"><code><span class="subtle-punctuation">_.</span>noConflict</code></a></li>
<li><a href="#noop"><code><span class="subtle-punctuation">_.</span>noop</code></a></li>
<li><a href="#now"><code><span class="subtle-punctuation">_.</span>now</code></a></li>
<li><a href="#parseInt"><code><span class="subtle-punctuation">_.</span>parseInt</code></a></li>
<li><a href="#property"><code><span class="subtle-punctuation">_.</span>property</code></a></li>
<li><a href="#random"><code><span class="subtle-punctuation">_.</span>random</code></a></li>
<li><a href="#result"><code><span class="subtle-punctuation">_.</span>result</code></a></li>
<li><a href="#runInContext"><code><span class="subtle-punctuation">_.</span>runInContext</code></a></li>
<li><a href="#template"><code><span class="subtle-punctuation">_.</span>template</code></a></li>
<li><a href="#times"><code><span class="subtle-punctuation">_.</span>times</code></a></li>
<li><a href="#unescape"><code><span class="subtle-punctuation">_.</span>unescape</code></a></li>
<li><a href="#uniqueId"><code><span class="subtle-punctuation">_.</span>uniqueId</code></a></li>
</ul>
</div>
<div>
<h2><code>Properties</code></h2>
<ul>
<li><a href="#VERSION"><code><span class="subtle-punctuation">_.</span>VERSION</code></a></li>
<li><a href="#support"><code><span class="subtle-punctuation">_.</span>support</code></a></li>
<li><a href="#support-argsClass"><code><span class="subtle-punctuation">_.</span>support.argsClass</code></a></li>
<li><a href="#support-argsObject"><code><span class="subtle-punctuation">_.</span>support.argsObject</code></a></li>
<li><a href="#support-enumErrorProps"><code><span class="subtle-punctuation">_.</span>support.enumErrorProps</code></a></li>
<li><a href="#support-enumPrototypes"><code><span class="subtle-punctuation">_.</span>support.enumPrototypes</code></a></li>
<li><a href="#support-funcDecomp"><code><span class="subtle-punctuation">_.</span>support.funcDecomp</code></a></li>
<li><a href="#support-funcNames"><code><span class="subtle-punctuation">_.</span>support.funcNames</code></a></li>
<li><a href="#support-nonEnumArgs"><code><span class="subtle-punctuation">_.</span>support.nonEnumArgs</code></a></li>
<li><a href="#support-nonEnumShadows"><code><span class="subtle-punctuation">_.</span>support.nonEnumShadows</code></a></li>
<li><a href="#support-ownLast"><code><span class="subtle-punctuation">_.</span>support.ownLast</code></a></li>
<li><a href="#support-spliceObjects"><code><span class="subtle-punctuation">_.</span>support.spliceObjects</code></a></li>
<li><a href="#support-unindexedChars"><code><span class="subtle-punctuation">_.</span>support.unindexedChars</code></a></li>
<li><a href="#templateSettings"><code><span class="subtle-punctuation">_.</span>templateSettings</code></a></li>
<li><a href="#templateSettings-escape"><code><span class="subtle-punctuation">_.</span>templateSettings.escape</code></a></li>
<li><a href="#templateSettings-evaluate"><code><span class="subtle-punctuation">_.</span>templateSettings.evaluate</code></a></li>
<li><a href="#templateSettings-imports"><code><span class="subtle-punctuation">_.</span>templateSettings.imports</code></a></li>
<li><a href="#templateSettings-imports-_"><code><span class="subtle-punctuation">_.</span>templateSettings.imports._</code></a></li>
<li><a href="#templateSettings-interpolate"><code><span class="subtle-punctuation">_.</span>templateSettings.interpolate</code></a></li>
<li><a href="#templateSettings-variable"><code><span class="subtle-punctuation">_.</span>templateSettings.variable</code></a></li>
</ul>
</div>
</div>
<div class="doc-container">
<div>
<h2><code>&#x201C;Arrays&#x201D; Methods</code></h2>
<div>
<h3 id="compact"><a href="#compact" class="fa fa-link"></a><code>_.compact(array)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4480">source</a> <a href="https://www.npmjs.com/package/lodash.compact">npm package</a></p>
<p>Creates an array with all falsey values removed. The values <code>false</code>, <code>null</code>,
<code>0</code>, <code>&quot;&quot;</code>, <code>undefined</code>, and <code>NaN</code> are all falsey.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to compact.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns a new array of filtered values.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter">.</span><span class="support">compact</span>([<span class="numeric">0</span><span class="delimiter">,</span>&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;false<span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;&apos;</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[1,&#xA0;2,&#xA0;3]</span></div></pre></div>

</div>
<div>
<h3 id="difference"><a href="#difference" class="fa fa-link"></a><code>_.difference(array, [values])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4509">source</a> <a href="https://www.npmjs.com/package/lodash.difference">npm package</a></p>
<p>Creates an array excluding all values of the provided arrays using strict
equality for comparisons, i.e. <code>===</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to process.</li>
<li><code>[values]</code> <em>(...Array)</em>: The arrays of values to exclude.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns a new array of filtered values.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">difference</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;<span class="numeric">4</span><span class="delimiter">,</span>&#xA0;<span class="numeric">5</span>]<span class="delimiter">,</span>&#xA0;[<span class="numeric">5</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">10</span>]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[1,&#xA0;3,&#xA0;4]</span></div></pre></div>

</div>
<div>
<h3 id="findIndex"><a href="#findIndex" class="fa fa-link"></a><code>_.findIndex(array, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4554">source</a> <a href="https://www.npmjs.com/package/lodash.findindex">npm package</a></p>
<p>This method is like <a href="#find"><code>_.find</code></a> except that it returns the index of the first
element that passes the callback check, instead of the element itself.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to search.</li>
<li><code>[callback=identity]</code> <em>(Function|Object|string)</em>: The function called per iteration. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>: Returns the index of the found element, else <code>-1</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;[</div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;false&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;true&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;pebbles&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;false&#xA0;}</div><div>];</div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">findIndex</span>(characters<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(chr)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;chr<span class="delimiter">.</span>age&#xA0;&lt;&#xA0;<span class="numeric">20</span>;</div><div>});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;2</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.where&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">findIndex</span>(characters<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;0</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.pluck&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">findIndex</span>(characters<span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;1</span></div></pre></div>

</div>
<div>
<h3 id="findLastIndex"><a href="#findLastIndex" class="fa fa-link"></a><code>_.findLastIndex(array, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4608">source</a> <a href="https://www.npmjs.com/package/lodash.findlastindex">npm package</a></p>
<p>This method is like <a href="#findIndex"><code>_.findIndex</code></a> except that it iterates over elements
of a <code>collection</code> from right to left.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to search.</li>
<li><code>[callback=identity]</code> <em>(Function|Object|string)</em>: The function called per iteration. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>: Returns the index of the found element, else <code>-1</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;[</div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;true&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;false&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;pebbles&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;true&#xA0;}</div><div>];</div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">findLastIndex</span>(characters<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(chr)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;chr<span class="delimiter">.</span>age&#xA0;&gt;&#xA0;<span class="numeric">30</span>;</div><div>});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;1</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.where&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">findLastIndex</span>(characters<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;0</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.pluck&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">findLastIndex</span>(characters<span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;2</span></div></pre></div>

</div>
<div>
<h3 id="first"><a href="#first" class="fa fa-link"></a><code>_.first(array, [callback], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4670">source</a> <a href="https://www.npmjs.com/package/lodash.first">npm package</a></p>
<p>Gets the first element or first <code>n</code> elements of an array. If a callback
is provided elements at the beginning of the array are returned as long
as the callback returns truey. The callback is bound to <code>thisArg</code> and
invoked with three arguments; <em>(value, index, array)</em>.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code>.</p>
<h4>Aliases</h4>
<p><em>_.head, _.take</em></p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
<li><code>[callback]</code> <em>(Function|Object|number|string)</em>: The function called per element or the number of elements to return. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*): Returns the first element(s)</em> of <code>array</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">first</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;1</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">first</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]<span class="delimiter">,</span>&#xA0;<span class="numeric">2</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[1,&#xA0;2]</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">first</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(num)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;num&#xA0;&lt;&#xA0;<span class="numeric">3</span>;</div><div>});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[1,&#xA0;2]</span></div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;[</div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;true<span class="delimiter">,</span>&#xA0;&#xA0;<span class="string">&apos;employer&apos;</span>:&#xA0;<span class="string">&apos;slate&apos;</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;&#xA0;&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;false<span class="delimiter">,</span>&#xA0;<span class="string">&apos;employer&apos;</span>:&#xA0;<span class="string">&apos;slate&apos;</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;pebbles&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;true<span class="delimiter">,</span>&#xA0;&#xA0;<span class="string">&apos;employer&apos;</span>:&#xA0;<span class="string">&apos;na&apos;</span>&#xA0;}</div><div>];</div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.pluck&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">first</span>(characters<span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[{&#xA0;&apos;name&apos;:&#xA0;&apos;barney&apos;,&#xA0;&apos;blocked&apos;:&#xA0;true,&#xA0;&apos;employer&apos;:&#xA0;&apos;slate&apos;&#xA0;}]</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.where&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">pluck</span>(_<span class="delimiter method">.</span><span class="name">first</span>(characters<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;employer&apos;</span>:&#xA0;<span class="string">&apos;slate&apos;</span>&#xA0;})<span class="delimiter">,</span>&#xA0;<span class="string">&apos;name&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[&apos;barney&apos;,&#xA0;&apos;fred&apos;]</span></div></pre></div>

</div>
<div>
<h3 id="flatten"><a href="#flatten" class="fa fa-link"></a><code>_.flatten(array, [isShallow=false], [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4730">source</a> <a href="https://www.npmjs.com/package/lodash.flatten">npm package</a></p>
<p>Flattens a nested array <em>(the nesting can be to any depth)</em>. If <code>isShallow</code>
is truey, the array will only be flattened a single level. If a callback
is provided each element of the array is passed through the callback before
flattening. The callback is bound to <code>thisArg</code> and invoked with three
arguments; <em>(value, index, array)</em>.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to flatten.</li>
<li><code>[isShallow=false]</code> <em>(boolean)</em>: A flag to restrict flattening to a single level.</li>
<li><code>[callback=identity]</code> <em>(Function|Object|string)</em>: The function called per iteration. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns a new flattened array.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">flatten</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;[<span class="numeric">2</span>]<span class="delimiter">,</span>&#xA0;[<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;[[<span class="numeric">4</span>]]]]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[1,&#xA0;2,&#xA0;3,&#xA0;4];</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">flatten</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;[<span class="numeric">2</span>]<span class="delimiter">,</span>&#xA0;[<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;[[<span class="numeric">4</span>]]]]<span class="delimiter">,</span>&#xA0;true);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[1,&#xA0;2,&#xA0;3,&#xA0;[[4]]];</span></div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;[</div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">30</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;pets&apos;</span>:&#xA0;[<span class="string">&apos;hoppy&apos;</span>]&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;pets&apos;</span>:&#xA0;[<span class="string">&apos;baby&#xA0;puss&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;dino&apos;</span>]&#xA0;}</div><div>];</div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.pluck&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">flatten</span>(characters<span class="delimiter">,</span>&#xA0;<span class="string">&apos;pets&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[&apos;hoppy&apos;,&#xA0;&apos;baby&#xA0;puss&apos;,&#xA0;&apos;dino&apos;]</span></div></pre></div>

</div>
<div>
<h3 id="indexOf"><a href="#indexOf" class="fa fa-link"></a><code>_.indexOf(array, value, [fromIndex=0])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4767">source</a> <a href="https://www.npmjs.com/package/lodash.indexof">npm package</a></p>
<p>Gets the index at which the first occurrence of <code>value</code> is found using
strict equality for comparisons, i.e. <code>===</code>. If the array is already sorted
providing <code>true</code> for <code>fromIndex</code> will run a faster binary search.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to search.</li>
<li><code>value</code> <em>(*)</em>: The value to search for.</li>
<li><code>[fromIndex=0]</code> <em>(boolean|number)</em>: The index to search from or <code>true</code> to perform a binary search on a sorted array.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>: Returns the index of the matched value or <code>-1</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="support">indexOf</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]<span class="delimiter">,</span>&#xA0;<span class="numeric">2</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;1</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="support">indexOf</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]<span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;4</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="support">indexOf</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]<span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;true);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;2</span></div></pre></div>

</div>
<div>
<h3 id="initial"><a href="#initial" class="fa fa-link"></a><code>_.initial(array, [callback=1], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4828">source</a> <a href="https://www.npmjs.com/package/lodash.initial">npm package</a></p>
<p>Gets all but the last element or last <code>n</code> elements of an array. If a
callback is provided elements at the end of the array are excluded from
the result as long as the callback returns truey. The callback is bound
to <code>thisArg</code> and invoked with three arguments; <em>(value, index, array)</em>.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
<li><code>[callback=1]</code> <em>(Function|Object|number|string)</em>: The function called per element or the number of elements to exclude. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns a slice of <code>array</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">initial</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[1,&#xA0;2]</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">initial</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]<span class="delimiter">,</span>&#xA0;<span class="numeric">2</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[1]</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">initial</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(num)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;num&#xA0;&gt;&#xA0;<span class="numeric">1</span>;</div><div>});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[1]</span></div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;[</div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;false<span class="delimiter">,</span>&#xA0;<span class="string">&apos;employer&apos;</span>:&#xA0;<span class="string">&apos;slate&apos;</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;&#xA0;&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;true<span class="delimiter">,</span>&#xA0;&#xA0;<span class="string">&apos;employer&apos;</span>:&#xA0;<span class="string">&apos;slate&apos;</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;pebbles&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;true<span class="delimiter">,</span>&#xA0;&#xA0;<span class="string">&apos;employer&apos;</span>:&#xA0;<span class="string">&apos;na&apos;</span>&#xA0;}</div><div>];</div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.pluck&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">initial</span>(characters<span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[{&#xA0;&apos;name&apos;:&#xA0;&apos;barney&apos;,&#xA0;&#xA0;&apos;blocked&apos;:&#xA0;false,&#xA0;&apos;employer&apos;:&#xA0;&apos;slate&apos;&#xA0;}]</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.where&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">pluck</span>(_<span class="delimiter method">.</span><span class="name">initial</span>(characters<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;employer&apos;</span>:&#xA0;<span class="string">&apos;na&apos;</span>&#xA0;})<span class="delimiter">,</span>&#xA0;<span class="string">&apos;name&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[&apos;barney&apos;,&#xA0;&apos;fred&apos;]</span></div></pre></div>

</div>
<div>
<h3 id="intersection"><a href="#intersection" class="fa fa-link"></a><code>_.intersection([array])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4858">source</a> <a href="https://www.npmjs.com/package/lodash.intersection">npm package</a></p>
<p>Creates an array of unique values present in all provided arrays using
strict equality for comparisons, i.e. <code>===</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>[array]</code> <em>(...Array)</em>: The arrays to inspect.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns an array of shared values.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">intersection</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]<span class="delimiter">,</span>&#xA0;[<span class="numeric">5</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">4</span>]<span class="delimiter">,</span>&#xA0;[<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">1</span>]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[1,&#xA0;2]</span></div></pre></div>

</div>
<div>
<h3 id="last"><a href="#last" class="fa fa-link"></a><code>_.last(array, [callback], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4958">source</a> <a href="https://www.npmjs.com/package/lodash.last">npm package</a></p>
<p>Gets the last element or last <code>n</code> elements of an array. If a callback is
provided elements at the end of the array are returned as long as the
callback returns truey. The callback is bound to <code>thisArg</code> and invoked
with three arguments; <em>(value, index, array)</em>.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
<li><code>[callback]</code> <em>(Function|Object|number|string)</em>: The function called per element or the number of elements to return. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*): Returns the last element(s)</em> of <code>array</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">last</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;3</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">last</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]<span class="delimiter">,</span>&#xA0;<span class="numeric">2</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[2,&#xA0;3]</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">last</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(num)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;num&#xA0;&gt;&#xA0;<span class="numeric">1</span>;</div><div>});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[2,&#xA0;3]</span></div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;[</div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;false<span class="delimiter">,</span>&#xA0;<span class="string">&apos;employer&apos;</span>:&#xA0;<span class="string">&apos;slate&apos;</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;&#xA0;&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;true<span class="delimiter">,</span>&#xA0;&#xA0;<span class="string">&apos;employer&apos;</span>:&#xA0;<span class="string">&apos;slate&apos;</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;pebbles&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;true<span class="delimiter">,</span>&#xA0;&#xA0;<span class="string">&apos;employer&apos;</span>:&#xA0;<span class="string">&apos;na&apos;</span>&#xA0;}</div><div>];</div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.pluck&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">pluck</span>(_<span class="delimiter method">.</span><span class="name">last</span>(characters<span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>)<span class="delimiter">,</span>&#xA0;<span class="string">&apos;name&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[&apos;fred&apos;,&#xA0;&apos;pebbles&apos;]</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.where&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">last</span>(characters<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;employer&apos;</span>:&#xA0;<span class="string">&apos;na&apos;</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[{&#xA0;&apos;name&apos;:&#xA0;&apos;pebbles&apos;,&#xA0;&apos;blocked&apos;:&#xA0;true,&#xA0;&apos;employer&apos;:&#xA0;&apos;na&apos;&#xA0;}]</span></div></pre></div>

</div>
<div>
<h3 id="lastIndexOf"><a href="#lastIndexOf" class="fa fa-link"></a><code>_.lastIndexOf(array, value, [fromIndex=array.length-1])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5004">source</a> <a href="https://www.npmjs.com/package/lodash.lastindexof">npm package</a></p>
<p>Gets the index at which the last occurrence of <code>value</code> is found using strict
equality for comparisons, i.e. <code>===</code>. If <code>fromIndex</code> is negative, it is used
as the offset from the end of the collection.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to search.</li>
<li><code>value</code> <em>(*)</em>: The value to search for.</li>
<li><code>[fromIndex=array.length-1]</code> <em>(number)</em>: The index to search from.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>: Returns the index of the matched value or <code>-1</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="support">lastIndexOf</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]<span class="delimiter">,</span>&#xA0;<span class="numeric">2</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;4</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="support">lastIndexOf</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]<span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;1</span></div></pre></div>

</div>
<div>
<h3 id="pull"><a href="#pull" class="fa fa-link"></a><code>_.pull(array, [value])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5034">source</a> <a href="https://www.npmjs.com/package/lodash.pull">npm package</a></p>
<p>Removes all provided values from the given array using strict equality for
comparisons, i.e. <code>===</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to modify.</li>
<li><code>[value]</code> <em>(...*)</em>: The values to remove.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns <code>array</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;array&#xA0;=&#xA0;[<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>];</div><div>_<span class="delimiter method">.</span><span class="name">pull</span>(array<span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>);</div><div><span class="name type console">console</span><span class="delimiter method">.</span><span class="support console">log</span>(array);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[1,&#xA0;1]</span></div></pre></div>

</div>
<div>
<h3 id="range"><a href="#range" class="fa fa-link"></a><code>_.range([start=0], end, [step=1])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5085">source</a> <a href="https://www.npmjs.com/package/lodash.range">npm package</a></p>
<p>Creates an array of numbers <em>(positive and/or negative)</em> progressing from
<code>start</code> up to but not including <code>end</code>. If <code>start</code> is less than <code>stop</code> a
zero-length range is created unless a negative <code>step</code> is specified.</p>
<h4>Arguments</h4>
<ol>
<li><code>[start=0]</code> <em>(number)</em>: The start of the range.</li>
<li><code>end</code> <em>(number)</em>: The end of the range.</li>
<li><code>[step=1]</code> <em>(number)</em>: The value to increment or decrement by.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns a new range array.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">range</span>(<span class="numeric">4</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[0,&#xA0;1,&#xA0;2,&#xA0;3]</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">range</span>(<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">5</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[1,&#xA0;2,&#xA0;3,&#xA0;4]</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">range</span>(<span class="numeric">0</span><span class="delimiter">,</span>&#xA0;<span class="numeric">20</span><span class="delimiter">,</span>&#xA0;<span class="numeric">5</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[0,&#xA0;5,&#xA0;10,&#xA0;15]</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">range</span>(<span class="numeric">0</span><span class="delimiter">,</span>&#xA0;-<span class="numeric">4</span><span class="delimiter">,</span>&#xA0;-<span class="numeric">1</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[0,&#xA0;-1,&#xA0;-2,&#xA0;-3]</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">range</span>(<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">4</span><span class="delimiter">,</span>&#xA0;<span class="numeric">0</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[1,&#xA0;1,&#xA0;1]</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">range</span>(<span class="numeric">0</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[]</span></div></pre></div>

</div>
<div>
<h3 id="remove"><a href="#remove" class="fa fa-link"></a><code>_.remove(array, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5138">source</a> <a href="https://www.npmjs.com/package/lodash.remove">npm package</a></p>
<p>Removes all elements from an array that the callback returns truey for
and returns an array of removed elements. The callback is bound to <code>thisArg</code>
and invoked with three arguments; <em>(value, index, array)</em>.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to modify.</li>
<li><code>[callback=identity]</code> <em>(Function|Object|string)</em>: The function called per iteration. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns a new array of removed elements.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;array&#xA0;=&#xA0;[<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;<span class="numeric">4</span><span class="delimiter">,</span>&#xA0;<span class="numeric">5</span><span class="delimiter">,</span>&#xA0;<span class="numeric">6</span>];</div><div><span class="type">var</span>&#xA0;evens&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">remove</span>(array<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(num)&#xA0;{&#xA0;return&#xA0;num&#xA0;%&#xA0;<span class="numeric">2</span>&#xA0;==&#xA0;<span class="numeric">0</span>;&#xA0;});</div><div>&#xA0;</div><div><span class="name type console">console</span><span class="delimiter method">.</span><span class="support console">log</span>(array);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[1,&#xA0;3,&#xA0;5]</span></div><div>&#xA0;</div><div><span class="name type console">console</span><span class="delimiter method">.</span><span class="support console">log</span>(evens);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[2,&#xA0;4,&#xA0;6]</span></div></pre></div>

</div>
<div>
<h3 id="rest"><a href="#rest" class="fa fa-link"></a><code>_.rest(array, [callback=1], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5207">source</a> <a href="https://www.npmjs.com/package/lodash.rest">npm package</a></p>
<p>The opposite of <a href="#initial"><code>_.initial</code></a> this method gets all but the first element or
first <code>n</code> elements of an array. If a callback function is provided elements
at the beginning of the array are excluded from the result as long as the
callback returns truey. The callback is bound to <code>thisArg</code> and invoked
with three arguments; <em>(value, index, array)</em>.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code>.</p>
<h4>Aliases</h4>
<p><em>_.drop, _.tail</em></p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
<li><code>[callback=1]</code> <em>(Function|Object|number|string)</em>: The function called per element or the number of elements to exclude. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns a slice of <code>array</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">rest</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[2,&#xA0;3]</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">rest</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]<span class="delimiter">,</span>&#xA0;<span class="numeric">2</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[3]</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">rest</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(num)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;num&#xA0;&lt;&#xA0;<span class="numeric">3</span>;</div><div>});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[3]</span></div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;[</div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;true<span class="delimiter">,</span>&#xA0;&#xA0;<span class="string">&apos;employer&apos;</span>:&#xA0;<span class="string">&apos;slate&apos;</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;&#xA0;&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;false<span class="delimiter">,</span>&#xA0;&#xA0;<span class="string">&apos;employer&apos;</span>:&#xA0;<span class="string">&apos;slate&apos;</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;pebbles&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;true<span class="delimiter">,</span>&#xA0;<span class="string">&apos;employer&apos;</span>:&#xA0;<span class="string">&apos;na&apos;</span>&#xA0;}</div><div>];</div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.pluck&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">pluck</span>(_<span class="delimiter method">.</span><span class="name">rest</span>(characters<span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>)<span class="delimiter">,</span>&#xA0;<span class="string">&apos;name&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[&apos;fred&apos;,&#xA0;&apos;pebbles&apos;]</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.where&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">rest</span>(characters<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;employer&apos;</span>:&#xA0;<span class="string">&apos;slate&apos;</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[{&#xA0;&apos;name&apos;:&#xA0;&apos;pebbles&apos;,&#xA0;&apos;blocked&apos;:&#xA0;true,&#xA0;&apos;employer&apos;:&#xA0;&apos;na&apos;&#xA0;}]</span></div></pre></div>

</div>
<div>
<h3 id="sortedIndex"><a href="#sortedIndex" class="fa fa-link"></a><code>_.sortedIndex(array, value, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5271">source</a> <a href="https://www.npmjs.com/package/lodash.sortedindex">npm package</a></p>
<p>Uses a binary search to determine the smallest index at which a value
should be inserted into a given sorted array in order to maintain the sort
order of the array. If a callback is provided it will be executed for
<code>value</code> and each element of <code>array</code> to compute their sort ranking. The
callback is bound to <code>thisArg</code> and invoked with one argument; <em>(value)</em>.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to inspect.</li>
<li><code>value</code> <em>(*)</em>: The value to evaluate.</li>
<li><code>[callback=identity]</code> <em>(Function|Object|string)</em>: The function called per iteration. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>: Returns the index at which <code>value</code> should be inserted into <code>array</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">sortedIndex</span>([<span class="numeric">20</span><span class="delimiter">,</span>&#xA0;<span class="numeric">30</span><span class="delimiter">,</span>&#xA0;<span class="numeric">50</span>]<span class="delimiter">,</span>&#xA0;<span class="numeric">40</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;2</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.pluck&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">sortedIndex</span>([{&#xA0;<span class="string">&apos;x&apos;</span>:&#xA0;<span class="numeric">20</span>&#xA0;}<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;x&apos;</span>:&#xA0;<span class="numeric">30</span>&#xA0;}<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;x&apos;</span>:&#xA0;<span class="numeric">50</span>&#xA0;}]<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;x&apos;</span>:&#xA0;<span class="numeric">40</span>&#xA0;}<span class="delimiter">,</span>&#xA0;<span class="string">&apos;x&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;2</span></div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;dict&#xA0;=&#xA0;{</div><div>&#xA0;&#xA0;<span class="string">&apos;wordToNumber&apos;</span>:&#xA0;{&#xA0;<span class="string">&apos;twenty&apos;</span>:&#xA0;<span class="numeric">20</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;thirty&apos;</span>:&#xA0;<span class="numeric">30</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;fourty&apos;</span>:&#xA0;<span class="numeric">40</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;fifty&apos;</span>:&#xA0;<span class="numeric">50</span>&#xA0;}</div><div>};</div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">sortedIndex</span>([<span class="string">&apos;twenty&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;thirty&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;fifty&apos;</span>]<span class="delimiter">,</span>&#xA0;<span class="string">&apos;fourty&apos;</span><span class="delimiter">,</span>&#xA0;<span class="type">function</span>(word)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;dict<span class="delimiter">.</span>wordToNumber[word];</div><div>});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;2</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">sortedIndex</span>([<span class="string">&apos;twenty&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;thirty&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;fifty&apos;</span>]<span class="delimiter">,</span>&#xA0;<span class="string">&apos;fourty&apos;</span><span class="delimiter">,</span>&#xA0;<span class="type">function</span>(word)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;this<span class="delimiter">.</span>wordToNumber[word];</div><div>}<span class="delimiter">,</span>&#xA0;dict);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;2</span></div></pre></div>

</div>
<div>
<h3 id="union"><a href="#union" class="fa fa-link"></a><code>_.union([array])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5302">source</a> <a href="https://www.npmjs.com/package/lodash.union">npm package</a></p>
<p>Creates an array of unique values, in order, of the provided arrays using
strict equality for comparisons, i.e. <code>===</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>[array]</code> <em>(...Array)</em>: The arrays to inspect.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns an array of combined values.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">union</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]<span class="delimiter">,</span>&#xA0;[<span class="numeric">5</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">4</span>]<span class="delimiter">,</span>&#xA0;[<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">1</span>]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[1,&#xA0;2,&#xA0;3,&#xA0;5,&#xA0;4]</span></div></pre></div>

</div>
<div>
<h3 id="uniq"><a href="#uniq" class="fa fa-link"></a><code>_.uniq(array, [isSorted=false], [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5350">source</a> <a href="https://www.npmjs.com/package/lodash.uniq">npm package</a></p>
<p>Creates a duplicate-value-free version of an array using strict equality
for comparisons, i.e. <code>===</code>. If the array is sorted, providing
<code>true</code> for <code>isSorted</code> will use a faster algorithm. If a callback is provided
each element of <code>array</code> is passed through the callback before uniqueness
is computed. The callback is bound to <code>thisArg</code> and invoked with three
arguments; <em>(value, index, array)</em>.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code>.</p>
<h4>Aliases</h4>
<p><em>_.unique</em></p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to process.</li>
<li><code>[isSorted=false]</code> <em>(boolean)</em>: A flag to indicate that <code>array</code> is sorted.</li>
<li><code>[callback=identity]</code> <em>(Function|Object|string)</em>: The function called per iteration. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns a duplicate-value-free array.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">uniq</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;<span class="numeric">1</span>]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[1,&#xA0;2,&#xA0;3]</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">uniq</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]<span class="delimiter">,</span>&#xA0;true);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[1,&#xA0;2,&#xA0;3]</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">uniq</span>([<span class="string">&apos;A&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;b&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;C&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;a&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;B&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;c&apos;</span>]<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(letter)&#xA0;{&#xA0;return&#xA0;letter<span class="delimiter method">.</span><span class="support">toLowerCase</span>();&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[&apos;A&apos;,&#xA0;&apos;b&apos;,&#xA0;&apos;C&apos;]</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">uniq</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2<span class="delimiter">.</span>5</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;<span class="numeric">1<span class="delimiter">.</span>5</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3<span class="delimiter">.</span>5</span>]<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(num)&#xA0;{&#xA0;return&#xA0;this<span class="delimiter method">.</span><span class="name">floor</span>(num);&#xA0;}<span class="delimiter">,</span>&#xA0;<span class="support">Math</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[1,&#xA0;2.5,&#xA0;3]</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.pluck&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">uniq</span>([{&#xA0;<span class="string">&apos;x&apos;</span>:&#xA0;<span class="numeric">1</span>&#xA0;}<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;x&apos;</span>:&#xA0;<span class="numeric">2</span>&#xA0;}<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;x&apos;</span>:&#xA0;<span class="numeric">1</span>&#xA0;}]<span class="delimiter">,</span>&#xA0;<span class="string">&apos;x&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[{&#xA0;&apos;x&apos;:&#xA0;1&#xA0;},&#xA0;{&#xA0;&apos;x&apos;:&#xA0;2&#xA0;}]</span></div></pre></div>

</div>
<div>
<h3 id="without"><a href="#without" class="fa fa-link"></a><code>_.without(array, [value])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5378">source</a> <a href="https://www.npmjs.com/package/lodash.without">npm package</a></p>
<p>Creates an array excluding all provided values using strict equality for
comparisons, i.e. <code>===</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to filter.</li>
<li><code>[value]</code> <em>(...*)</em>: The values to exclude.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns a new array of filtered values.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">without</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">0</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">4</span>]<span class="delimiter">,</span>&#xA0;<span class="numeric">0</span><span class="delimiter">,</span>&#xA0;<span class="numeric">1</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[2,&#xA0;3,&#xA0;4]</span></div></pre></div>

</div>
<div>
<h3 id="xor"><a href="#xor" class="fa fa-link"></a><code>_.xor([array])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5399">source</a> <a href="https://www.npmjs.com/package/lodash.xor">npm package</a></p>
<p>Creates an array that is the symmetric difference of the provided arrays.
See <a href="http://en.wikipedia.org/wiki/Symmetric_difference">http://en.wikipedia.org/wiki/Symmetric_difference</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>[array]</code> <em>(...Array)</em>: The arrays to inspect.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns an array of values.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">xor</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]<span class="delimiter">,</span>&#xA0;[<span class="numeric">5</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">4</span>]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[3,&#xA0;5,&#xA0;4]</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">xor</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">5</span>]<span class="delimiter">,</span>&#xA0;[<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;<span class="numeric">5</span>]<span class="delimiter">,</span>&#xA0;[<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;<span class="numeric">4</span><span class="delimiter">,</span>&#xA0;<span class="numeric">5</span>]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[1,&#xA0;4,&#xA0;5]</span></div></pre></div>

</div>
<div>
<h3 id="zip"><a href="#zip" class="fa fa-link"></a><code>_.zip([array])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5430">source</a> <a href="https://www.npmjs.com/package/lodash.zip">npm package</a></p>
<p>Creates an array of grouped elements, the first of which contains the first
elements of the given arrays, the second of which contains the second
elements of the given arrays, and so on.</p>
<h4>Aliases</h4>
<p><em>_.unzip</em></p>
<h4>Arguments</h4>
<ol>
<li><code>[array]</code> <em>(...Array)</em>: Arrays to process.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns a new array of grouped elements.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">zip</span>([<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;barney&apos;</span>]<span class="delimiter">,</span>&#xA0;[<span class="numeric">30</span><span class="delimiter">,</span>&#xA0;<span class="numeric">40</span>]<span class="delimiter">,</span>&#xA0;[true<span class="delimiter">,</span>&#xA0;false]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[[&apos;fred&apos;,&#xA0;30,&#xA0;true],&#xA0;[&apos;barney&apos;,&#xA0;40,&#xA0;false]]</span></div></pre></div>

</div>
<div>
<h3 id="zipObject"><a href="#zipObject" class="fa fa-link"></a><code>_.zipObject(keys, [values=[]])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5460">source</a> <a href="https://www.npmjs.com/package/lodash.zipobject">npm package</a></p>
<p>Creates an object composed from arrays of <code>keys</code> and <code>values</code>. Provide
either a single two dimensional array, i.e. <code>[[key1, value1], [key2, value2]]</code>
or two arrays, one of <code>keys</code> and one of corresponding <code>values</code>.</p>
<h4>Aliases</h4>
<p><em>_.object</em></p>
<h4>Arguments</h4>
<ol>
<li><code>keys</code> <em>(Array)</em>: The array of keys.</li>
<li><code>[values=[]]</code> <em>(Array)</em>: The array of values.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>: Returns an object composed of the given keys and corresponding values.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">zipObject</span>([<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;barney&apos;</span>]<span class="delimiter">,</span>&#xA0;[<span class="numeric">30</span><span class="delimiter">,</span>&#xA0;<span class="numeric">40</span>]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;fred&apos;:&#xA0;30,&#xA0;&apos;barney&apos;:&#xA0;40&#xA0;}</span></div></pre></div>

</div>
</div>
<div>
<h2><code>&#x201C;Chaining&#x201D; Methods</code></h2>
<div>
<h3 id="lodash"><a href="#lodash" class="fa fa-link"></a><code>_(value)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L647">source</a> <a href="https://www.npmjs.com/package/lodash._">npm package</a></p>
<p>Creates a <code>lodash</code> object which wraps the given value to enable intuitive
method chaining.
<br>
<br>
In addition to Lo-Dash methods, wrappers also have the following <code>Array</code> methods:<br>
<code>concat</code>, <code>join</code>, <code>pop</code>, <code>push</code>, <code>reverse</code>, <code>shift</code>, <code>slice</code>, <code>sort</code>, <code>splice</code>,
and <code>unshift</code>
<br>
<br>
Chaining is supported in custom builds as long as the <code>value</code> method is
implicitly or explicitly included in the build.
<br>
<br>
The chainable wrapper functions are:<br>
<code>after</code>, <code>assign</code>, <code>bind</code>, <code>bindAll</code>, <code>bindKey</code>, <code>chain</code>, <code>compact</code>,
<code>compose</code>, <code>concat</code>, <code>countBy</code>, <code>create</code>, <code>createCallback</code>, <code>curry</code>,
<code>debounce</code>, <code>defaults</code>, <code>defer</code>, <code>delay</code>, <code>difference</code>, <code>filter</code>, <code>flatten</code>,
<code>forEach</code>, <code>forEachRight</code>, <code>forIn</code>, <code>forInRight</code>, <code>forOwn</code>, <code>forOwnRight</code>,
<code>functions</code>, <code>groupBy</code>, <code>indexBy</code>, <code>initial</code>, <code>intersection</code>, <code>invert</code>,
<code>invoke</code>, <code>keys</code>, <code>map</code>, <code>max</code>, <code>memoize</code>, <code>merge</code>, <code>min</code>, <code>object</code>, <code>omit</code>,
<code>once</code>, <code>pairs</code>, <code>partial</code>, <code>partialRight</code>, <code>pick</code>, <code>pluck</code>, <code>pull</code>, <code>push</code>,
<code>range</code>, <code>reject</code>, <code>remove</code>, <code>rest</code>, <code>reverse</code>, <code>shuffle</code>, <code>slice</code>, <code>sort</code>,
<code>sortBy</code>, <code>splice</code>, <code>tap</code>, <code>throttle</code>, <code>times</code>, <code>toArray</code>, <code>transform</code>,
<code>union</code>, <code>uniq</code>, <code>unshift</code>, <code>unzip</code>, <code>values</code>, <code>where</code>, <code>without</code>, <code>wrap</code>,
and <code>zip</code>
<br>
<br>
The non-chainable wrapper functions are:<br>
<code>clone</code>, <code>cloneDeep</code>, <code>contains</code>, <code>escape</code>, <code>every</code>, <code>find</code>, <code>findIndex</code>,
<code>findKey</code>, <code>findLast</code>, <code>findLastIndex</code>, <code>findLastKey</code>, <code>has</code>, <code>identity</code>,
<code>indexOf</code>, <code>isArguments</code>, <code>isArray</code>, <code>isBoolean</code>, <code>isDate</code>, <code>isElement</code>,
<code>isEmpty</code>, <code>isEqual</code>, <code>isFinite</code>, <code>isFunction</code>, <code>isNaN</code>, <code>isNull</code>, <code>isNumber</code>,
<code>isObject</code>, <code>isPlainObject</code>, <code>isRegExp</code>, <code>isString</code>, <code>isUndefined</code>, <code>join</code>,
<code>lastIndexOf</code>, <code>mixin</code>, <code>noConflict</code>, <code>parseInt</code>, <code>pop</code>, <code>random</code>, <code>reduce</code>,
<code>reduceRight</code>, <code>result</code>, <code>shift</code>, <code>size</code>, <code>some</code>, <code>sortedIndex</code>, <code>runInContext</code>,
<code>template</code>, <code>unescape</code>, <code>uniqueId</code>, and <code>value</code>
<br>
<br>
The wrapper functions <code>first</code> and <code>last</code> return wrapped values when <code>n</code> is
provided, otherwise they return unwrapped values.
<br>
<br>
Explicit chaining can be enabled by using the <a href="#chain"><code>_.chain</code></a> method.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to wrap in a <code>lodash</code> instance.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>: Returns a <code>lodash</code> instance.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;wrapped&#xA0;=&#xA0;<span class="name">_</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]);</div><div>&#xA0;</div><div><span class="comment">//&#xA0;returns&#xA0;an&#xA0;unwrapped&#xA0;value</span></div><div>wrapped<span class="delimiter method">.</span><span class="name">reduce</span>(<span class="type">function</span>(sum<span class="delimiter">,</span>&#xA0;num)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;sum&#xA0;+&#xA0;num;</div><div>});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;6</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;returns&#xA0;a&#xA0;wrapped&#xA0;value</span></div><div><span class="type">var</span>&#xA0;squares&#xA0;=&#xA0;wrapped<span class="delimiter method">.</span><span class="name">map</span>(<span class="type">function</span>(num)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;num&#xA0;*&#xA0;num;</div><div>});</div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">isArray</span>(squares);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;false</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">isArray</span>(squares<span class="delimiter">.</span><span class="support">value</span>());</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div></pre></div>

</div>
<div>
<h3 id="chain"><a href="#chain" class="fa fa-link"></a><code>_.chain(value)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6789">source</a> <a href="https://www.npmjs.com/package/lodash.chain">npm package</a></p>
<p>Creates a <code>lodash</code> object that wraps the given value with explicit
method chaining enabled.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to wrap.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>: Returns the wrapper object.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;[</div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;pebbles&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">1</span>&#xA0;}</div><div>];</div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;youngest&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">chain</span>(characters)</div><div>&#xA0;&#xA0;&#xA0;&#xA0;<span class="delimiter method">.</span><span class="name">sortBy</span>(<span class="string">&apos;age&apos;</span>)</div><div>&#xA0;&#xA0;&#xA0;&#xA0;<span class="delimiter method">.</span><span class="name">map</span>(<span class="type">function</span>(chr)&#xA0;{&#xA0;return&#xA0;chr<span class="delimiter">.</span><span class="support">name</span>&#xA0;+&#xA0;<span class="string">&apos;&#xA0;is&#xA0;&apos;</span>&#xA0;+&#xA0;chr<span class="delimiter">.</span>age;&#xA0;})</div><div>&#xA0;&#xA0;&#xA0;&#xA0;<span class="delimiter method">.</span><span class="name">first</span>()</div><div>&#xA0;&#xA0;&#xA0;&#xA0;<span class="delimiter">.</span><span class="support">value</span>();</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;pebbles&#xA0;is&#xA0;1&apos;</span></div></pre></div>

</div>
<div>
<h3 id="tap"><a href="#tap" class="fa fa-link"></a><code>_.tap(value, interceptor)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6815">source</a> <a href="https://www.npmjs.com/package/lodash.tap">npm package</a></p>
<p>Invokes <code>interceptor</code> with the <code>value</code> as the first argument and then
returns <code>value</code>. The purpose of this method is to &quot;tap into&quot; a method
chain in order to perform operations on intermediate results within
the chain.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to provide to <code>interceptor</code>.</li>
<li><code>interceptor</code> <em>(Function)</em>: The function to invoke.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>: Returns <code>value</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="name">_</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;<span class="numeric">4</span>])</div><div>&#xA0;<span class="delimiter method">.</span><span class="name">tap</span>(<span class="type">function</span>(array)&#xA0;{&#xA0;array<span class="delimiter method">.</span><span class="support">pop</span>();&#xA0;})</div><div>&#xA0;<span class="delimiter method">.</span><span class="support">reverse</span>()</div><div>&#xA0;<span class="delimiter">.</span><span class="support">value</span>();</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[3,&#xA0;2,&#xA0;1]</span></div></pre></div>

</div>
<div>
<h3 id="prototype-chain"><a href="#prototype-chain" class="fa fa-link"></a><code>_.prototype.chain()</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6845">source</a> <a href="https://www.npmjs.com/package/lodash.chain">npm package</a></p>
<p>Enables explicit method chaining on the wrapper object.</p>
<h4>Returns</h4>
<p><em>(*)</em>: Returns the wrapper object.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;[</div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span>&#xA0;}</div><div>];</div><div>&#xA0;</div><div><span class="comment">//&#xA0;without&#xA0;explicit&#xA0;chaining</span></div><div><span class="name">_</span>(characters)<span class="delimiter method">.</span><span class="name">first</span>();</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;name&apos;:&#xA0;&apos;barney&apos;,&#xA0;&apos;age&apos;:&#xA0;36&#xA0;}</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;with&#xA0;explicit&#xA0;chaining</span></div><div><span class="name">_</span>(characters)<span class="delimiter method">.</span><span class="name">chain</span>()</div><div>&#xA0;&#xA0;<span class="delimiter method">.</span><span class="name">first</span>()</div><div>&#xA0;&#xA0;<span class="delimiter method">.</span><span class="name">pick</span>(<span class="string">&apos;age&apos;</span>)</div><div>&#xA0;&#xA0;<span class="delimiter">.</span><span class="support">value</span>();</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;age&apos;:&#xA0;36&#xA0;}</span></div></pre></div>

</div>
<div>
<h3 id="prototype-toString"><a href="#prototype-toString" class="fa fa-link"></a><code>_.prototype.toString()</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6862">source</a> <a href="https://www.npmjs.com/package/lodash.tostring">npm package</a></p>
<p>Produces the <code>toString</code> result of the wrapped value.</p>
<h4>Returns</h4>
<p><em>(string)</em>: Returns the string result.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="name">_</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>])<span class="delimiter method">.</span><span class="support">toString</span>();</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;1,2,3&apos;</span></div></pre></div>

</div>
<div>
<h3 id="prototype-valueOf"><a href="#prototype-valueOf" class="fa fa-link"></a><code>_.prototype.valueOf()</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6879">source</a> <a href="https://www.npmjs.com/package/lodash.valueof">npm package</a></p>
<p>Extracts the wrapped value.</p>
<h4>Aliases</h4>
<p><em>_.prototype.value</em></p>
<h4>Returns</h4>
<p><em>(*)</em>: Returns the wrapped value.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="name">_</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>])<span class="delimiter method">.</span><span class="support">valueOf</span>();</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[1,&#xA0;2,&#xA0;3]</span></div></pre></div>

</div>
</div>
<div>
<h2><code>&#x201C;Collections&#x201D; Methods</code></h2>
<div>
<h3 id="at"><a href="#at" class="fa fa-link"></a><code>_.at(collection, [index])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3297">source</a> <a href="https://www.npmjs.com/package/lodash.at">npm package</a></p>
<p>Creates an array of elements from the specified indexes, or keys, of the
<code>collection</code>. Indexes may be specified as individual arguments or as arrays
of indexes.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>[index]</code> <em>(...(number|number[]|string|string[]))</em>: The indexes of <code>collection</code> to retrieve, specified as individual indexes or arrays of indexes.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns a new array of elements corresponding to the provided indexes.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">at</span>([<span class="string">&apos;a&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;b&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;c&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;d&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;e&apos;</span>]<span class="delimiter">,</span>&#xA0;[<span class="numeric">0</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">4</span>]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[&apos;a&apos;,&#xA0;&apos;c&apos;,&#xA0;&apos;e&apos;]</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">at</span>([<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;pebbles&apos;</span>]<span class="delimiter">,</span>&#xA0;<span class="numeric">0</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[&apos;fred&apos;,&#xA0;&apos;pebbles&apos;]</span></div></pre></div>

</div>
<div>
<h3 id="contains"><a href="#contains" class="fa fa-link"></a><code>_.contains(collection, target, [fromIndex=0])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3340">source</a> <a href="https://www.npmjs.com/package/lodash.contains">npm package</a></p>
<p>Checks if a given value is present in a collection using strict equality
for comparisons, i.e. <code>===</code>. If <code>fromIndex</code> is negative, it is used as the
offset from the end of the collection.</p>
<h4>Aliases</h4>
<p><em>_.include</em></p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>target</code> <em>(*)</em>: The value to check for.</li>
<li><code>[fromIndex=0]</code> <em>(number)</em>: The index to search from.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>: Returns <code>true</code> if the <code>target</code> element is found, else <code>false</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">contains</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]<span class="delimiter">,</span>&#xA0;<span class="numeric">1</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">contains</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]<span class="delimiter">,</span>&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;false</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">contains</span>({&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span>&#xA0;}<span class="delimiter">,</span>&#xA0;<span class="string">&apos;fred&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">contains</span>(<span class="string">&apos;pebbles&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;eb&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div></pre></div>

</div>
<div>
<h3 id="countBy"><a href="#countBy" class="fa fa-link"></a><code>_.countBy(collection, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3395">source</a> <a href="https://www.npmjs.com/package/lodash.countby">npm package</a></p>
<p>Creates an object composed of keys generated from the results of running
each element of <code>collection</code> through the callback. The corresponding value
of each key is the number of times the key was returned by the callback.
The callback is bound to <code>thisArg</code> and invoked with three arguments;
<em>(value, index|key, collection)</em>.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>[callback=identity]</code> <em>(Function|Object|string)</em>: The function called per iteration. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>: Returns the composed aggregate object.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">countBy</span>([<span class="numeric">4<span class="delimiter">.</span>3</span><span class="delimiter">,</span>&#xA0;<span class="numeric">6<span class="delimiter">.</span>1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">6<span class="delimiter">.</span>4</span>]<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(num)&#xA0;{&#xA0;return&#xA0;<span class="support">Math</span><span class="delimiter method">.</span><span class="support">floor</span>(num);&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;4&apos;:&#xA0;1,&#xA0;&apos;6&apos;:&#xA0;2&#xA0;}</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">countBy</span>([<span class="numeric">4<span class="delimiter">.</span>3</span><span class="delimiter">,</span>&#xA0;<span class="numeric">6<span class="delimiter">.</span>1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">6<span class="delimiter">.</span>4</span>]<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(num)&#xA0;{&#xA0;return&#xA0;this<span class="delimiter method">.</span><span class="name">floor</span>(num);&#xA0;}<span class="delimiter">,</span>&#xA0;<span class="support">Math</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;4&apos;:&#xA0;1,&#xA0;&apos;6&apos;:&#xA0;2&#xA0;}</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">countBy</span>([<span class="string">&apos;one&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;two&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;three&apos;</span>]<span class="delimiter">,</span>&#xA0;<span class="string">&apos;length&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;3&apos;:&#xA0;2,&#xA0;&apos;5&apos;:&#xA0;1&#xA0;}</span></div></pre></div>

</div>
<div>
<h3 id="every"><a href="#every" class="fa fa-link"></a><code>_.every(collection, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3440">source</a> <a href="https://www.npmjs.com/package/lodash.every">npm package</a></p>
<p>Checks if the given callback returns truey value for <strong>all</strong> elements of
a collection. The callback is bound to <code>thisArg</code> and invoked with three
arguments; <em>(value, index|key, collection)</em>.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code>.</p>
<h4>Aliases</h4>
<p><em>_.all</em></p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>[callback=identity]</code> <em>(Function|Object|string)</em>: The function called per iteration. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>: Returns <code>true</code> if all elements passed the callback check, else <code>false</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">every</span>([true<span class="delimiter">,</span>&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;null<span class="delimiter">,</span>&#xA0;<span class="string">&apos;yes&apos;</span>]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;false</span></div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;[</div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span>&#xA0;}</div><div>];</div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.pluck&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">every</span>(characters<span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.where&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">every</span>(characters<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;false</span></div></pre></div>

</div>
<div>
<h3 id="filter"><a href="#filter" class="fa fa-link"></a><code>_.filter(collection, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3501">source</a> <a href="https://www.npmjs.com/package/lodash.filter">npm package</a></p>
<p>Iterates over elements of a collection, returning an array of all elements
the callback returns truey for. The callback is bound to <code>thisArg</code> and
invoked with three arguments; <em>(value, index|key, collection)</em>.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code>.</p>
<h4>Aliases</h4>
<p><em>_.select</em></p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>[callback=identity]</code> <em>(Function|Object|string)</em>: The function called per iteration. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns a new array of elements that passed the callback check.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;evens&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">filter</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;<span class="numeric">4</span><span class="delimiter">,</span>&#xA0;<span class="numeric">5</span><span class="delimiter">,</span>&#xA0;<span class="numeric">6</span>]<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(num)&#xA0;{&#xA0;return&#xA0;num&#xA0;%&#xA0;<span class="numeric">2</span>&#xA0;==&#xA0;<span class="numeric">0</span>;&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[2,&#xA0;4,&#xA0;6]</span></div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;[</div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;false&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;true&#xA0;}</div><div>];</div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.pluck&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">filter</span>(characters<span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[{&#xA0;&apos;name&apos;:&#xA0;&apos;fred&apos;,&#xA0;&apos;age&apos;:&#xA0;40,&#xA0;&apos;blocked&apos;:&#xA0;true&#xA0;}]</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.where&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">filter</span>(characters<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[{&#xA0;&apos;name&apos;:&#xA0;&apos;barney&apos;,&#xA0;&apos;age&apos;:&#xA0;36,&#xA0;&apos;blocked&apos;:&#xA0;false&#xA0;}]</span></div></pre></div>

</div>
<div>
<h3 id="find"><a href="#find" class="fa fa-link"></a><code>_.find(collection, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3568">source</a> <a href="https://www.npmjs.com/package/lodash.find">npm package</a></p>
<p>Iterates over elements of a collection, returning the first element that
the callback returns truey for. The callback is bound to <code>thisArg</code> and
invoked with three arguments; <em>(value, index|key, collection)</em>.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code>.</p>
<h4>Aliases</h4>
<p><em>_.detect, _.findWhere</em></p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>[callback=identity]</code> <em>(Function|Object|string)</em>: The function called per iteration. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>: Returns the found element, else <code>undefined</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;[</div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;false&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;true&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;pebbles&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;false&#xA0;}</div><div>];</div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="support">find</span>(characters<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(chr)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;chr<span class="delimiter">.</span>age&#xA0;&lt;&#xA0;<span class="numeric">40</span>;</div><div>});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;name&apos;:&#xA0;&apos;barney&apos;,&#xA0;&apos;age&apos;:&#xA0;36,&#xA0;&apos;blocked&apos;:&#xA0;false&#xA0;}</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.where&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="support">find</span>(characters<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">1</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&#xA0;{&#xA0;&apos;name&apos;:&#xA0;&apos;pebbles&apos;,&#xA0;&apos;age&apos;:&#xA0;1,&#xA0;&apos;blocked&apos;:&#xA0;false&#xA0;}</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.pluck&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="support">find</span>(characters<span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;name&apos;:&#xA0;&apos;fred&apos;,&#xA0;&apos;age&apos;:&#xA0;40,&#xA0;&apos;blocked&apos;:&#xA0;true&#xA0;}</span></div></pre></div>

</div>
<div>
<h3 id="findLast"><a href="#findLast" class="fa fa-link"></a><code>_.findLast(collection, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3613">source</a> <a href="https://www.npmjs.com/package/lodash.findlast">npm package</a></p>
<p>This method is like <a href="#find"><code>_.find</code></a> except that it iterates over elements
of a <code>collection</code> from right to left.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>[callback=identity]</code> <em>(Function|Object|string)</em>: The function called per iteration. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>: Returns the found element, else <code>undefined</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">findLast</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;<span class="numeric">4</span>]<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(num)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;num&#xA0;%&#xA0;<span class="numeric">2</span>&#xA0;==&#xA0;<span class="numeric">1</span>;</div><div>});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;3</span></div></pre></div>

</div>
<div>
<h3 id="forEach"><a href="#forEach" class="fa fa-link"></a><code>_.forEach(collection, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3651">source</a> <a href="https://www.npmjs.com/package/lodash.foreach">npm package</a></p>
<p>Iterates over elements of a collection, executing the callback for each
element. The callback is bound to <code>thisArg</code> and invoked with three arguments;
<em>(value, index|key, collection)</em>. Callbacks may exit iteration early by
explicitly returning <code>false</code>.
<br>
<br>
Note: As with other &quot;Collections&quot; methods, objects with a <code>length</code> property
are iterated like arrays. To avoid this behavior <a href="#forIn"><code>_.forIn</code></a> or <a href="#forOwn"><code>_.forOwn</code></a>
may be used for object iteration.</p>
<h4>Aliases</h4>
<p><em>_.each</em></p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>[callback=identity]</code> <em>(Function)</em>: The function called per iteration.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>: Returns <code>collection</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="name">_</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>])<span class="delimiter method">.</span><span class="name">forEach</span>(<span class="type">function</span>(num)&#xA0;{&#xA0;<span class="name type console">console</span><span class="delimiter method">.</span><span class="support console">log</span>(num);&#xA0;})<span class="delimiter method">.</span><span class="support">join</span>(<span class="string">&apos;,&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;logs&#xA0;each&#xA0;number&#xA0;and&#xA0;returns&#xA0;&apos;1,2,3&apos;</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">forEach</span>({&#xA0;<span class="string">&apos;one&apos;</span>:&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;two&apos;</span>:&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;three&apos;</span>:&#xA0;<span class="numeric">3</span>&#xA0;}<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(num)&#xA0;{&#xA0;<span class="name type console">console</span><span class="delimiter method">.</span><span class="support console">log</span>(num);&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;logs&#xA0;each&#xA0;number&#xA0;and&#xA0;returns&#xA0;the&#xA0;object&#xA0;(property&#xA0;order&#xA0;is&#xA0;not&#xA0;guaranteed&#xA0;across&#xA0;environments)</span></div></pre></div>

</div>
<div>
<h3 id="forEachRight"><a href="#forEachRight" class="fa fa-link"></a><code>_.forEachRight(collection, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3684">source</a> <a href="https://www.npmjs.com/package/lodash.foreachright">npm package</a></p>
<p>This method is like <a href="#forEach"><code>_.forEach</code></a> except that it iterates over elements
of a <code>collection</code> from right to left.</p>
<h4>Aliases</h4>
<p><em>_.eachRight</em></p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>[callback=identity]</code> <em>(Function)</em>: The function called per iteration.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>: Returns <code>collection</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="name">_</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>])<span class="delimiter method">.</span><span class="name">forEachRight</span>(<span class="type">function</span>(num)&#xA0;{&#xA0;<span class="name type console">console</span><span class="delimiter method">.</span><span class="support console">log</span>(num);&#xA0;})<span class="delimiter method">.</span><span class="support">join</span>(<span class="string">&apos;,&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;logs&#xA0;each&#xA0;number&#xA0;from&#xA0;right&#xA0;to&#xA0;left&#xA0;and&#xA0;returns&#xA0;&apos;3,2,1&apos;</span></div></pre></div>

</div>
<div>
<h3 id="groupBy"><a href="#groupBy" class="fa fa-link"></a><code>_.groupBy(collection, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3745">source</a> <a href="https://www.npmjs.com/package/lodash.groupby">npm package</a></p>
<p>Creates an object composed of keys generated from the results of running
each element of a collection through the callback. The corresponding value
of each key is an array of the elements responsible for generating the key.
The callback is bound to <code>thisArg</code> and invoked with three arguments;
<em>(value, index|key, collection)</em>.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code></p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>[callback=identity]</code> <em>(Function|Object|string)</em>: The function called per iteration. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>: Returns the composed aggregate object.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">groupBy</span>([<span class="numeric">4<span class="delimiter">.</span>2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">6<span class="delimiter">.</span>1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">6<span class="delimiter">.</span>4</span>]<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(num)&#xA0;{&#xA0;return&#xA0;<span class="support">Math</span><span class="delimiter method">.</span><span class="support">floor</span>(num);&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;4&apos;:&#xA0;[4.2],&#xA0;&apos;6&apos;:&#xA0;[6.1,&#xA0;6.4]&#xA0;}</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">groupBy</span>([<span class="numeric">4<span class="delimiter">.</span>2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">6<span class="delimiter">.</span>1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">6<span class="delimiter">.</span>4</span>]<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(num)&#xA0;{&#xA0;return&#xA0;this<span class="delimiter method">.</span><span class="name">floor</span>(num);&#xA0;}<span class="delimiter">,</span>&#xA0;<span class="support">Math</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;4&apos;:&#xA0;[4.2],&#xA0;&apos;6&apos;:&#xA0;[6.1,&#xA0;6.4]&#xA0;}</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.pluck&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">groupBy</span>([<span class="string">&apos;one&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;two&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;three&apos;</span>]<span class="delimiter">,</span>&#xA0;<span class="string">&apos;length&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;3&apos;:&#xA0;[&apos;one&apos;,&#xA0;&apos;two&apos;],&#xA0;&apos;5&apos;:&#xA0;[&apos;three&apos;]&#xA0;}</span></div></pre></div>

</div>
<div>
<h3 id="indexBy"><a href="#indexBy" class="fa fa-link"></a><code>_.indexBy(collection, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3788">source</a> <a href="https://www.npmjs.com/package/lodash.indexby">npm package</a></p>
<p>Creates an object composed of keys generated from the results of running
each element of the collection through the given callback. The corresponding
value of each key is the last element responsible for generating the key.
The callback is bound to <code>thisArg</code> and invoked with three arguments;
<em>(value, index|key, collection)</em>.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>[callback=identity]</code> <em>(Function|Object|string)</em>: The function called per iteration. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>: Returns the composed aggregate object.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;keys&#xA0;=&#xA0;[</div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;dir&apos;</span>:&#xA0;<span class="string">&apos;left&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;code&apos;</span>:&#xA0;<span class="numeric">97</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;dir&apos;</span>:&#xA0;<span class="string">&apos;right&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;code&apos;</span>:&#xA0;<span class="numeric">100</span>&#xA0;}</div><div>];</div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">indexBy</span>(keys<span class="delimiter">,</span>&#xA0;<span class="string">&apos;dir&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;left&apos;:&#xA0;{&#xA0;&apos;dir&apos;:&#xA0;&apos;left&apos;,&#xA0;&apos;code&apos;:&#xA0;97&#xA0;},&#xA0;&apos;right&apos;:&#xA0;{&#xA0;&apos;dir&apos;:&#xA0;&apos;right&apos;,&#xA0;&apos;code&apos;:&#xA0;100&#xA0;}&#xA0;}</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">indexBy</span>(keys<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(key)&#xA0;{&#xA0;return&#xA0;<span class="support">String</span><span class="delimiter method">.</span><span class="support">fromCharCode</span>(key<span class="delimiter">.</span><span class="support">code</span>);&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;a&apos;:&#xA0;{&#xA0;&apos;dir&apos;:&#xA0;&apos;left&apos;,&#xA0;&apos;code&apos;:&#xA0;97&#xA0;},&#xA0;&apos;d&apos;:&#xA0;{&#xA0;&apos;dir&apos;:&#xA0;&apos;right&apos;,&#xA0;&apos;code&apos;:&#xA0;100&#xA0;}&#xA0;}</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">indexBy</span>(characters<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(key)&#xA0;{&#xA0;this<span class="delimiter method">.</span><span class="support">fromCharCode</span>(key<span class="delimiter">.</span><span class="support">code</span>);&#xA0;}<span class="delimiter">,</span>&#xA0;<span class="support">String</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;a&apos;:&#xA0;{&#xA0;&apos;dir&apos;:&#xA0;&apos;left&apos;,&#xA0;&apos;code&apos;:&#xA0;97&#xA0;},&#xA0;&apos;d&apos;:&#xA0;{&#xA0;&apos;dir&apos;:&#xA0;&apos;right&apos;,&#xA0;&apos;code&apos;:&#xA0;100&#xA0;}&#xA0;}</span></div></pre></div>

</div>
<div>
<h3 id="invoke"><a href="#invoke" class="fa fa-link"></a><code>_.invoke(collection, methodName, [arg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3814">source</a> <a href="https://www.npmjs.com/package/lodash.invoke">npm package</a></p>
<p>Invokes the method named by <code>methodName</code> on each element in the <code>collection</code>
returning an array of the results of each invoked method. Additional arguments
will be provided to each invoked method. If <code>methodName</code> is a function it
will be invoked for, and <code>this</code> bound to, each element in the <code>collection</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>methodName</code> <em>(Function|string)</em>: The name of the method to invoke or the function invoked per iteration.</li>
<li><code>[arg]</code> <em>(...*)</em>: Arguments to invoke the method with.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns a new array of the results of each invoked method.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">invoke</span>([[<span class="numeric">5</span><span class="delimiter">,</span>&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">7</span>]<span class="delimiter">,</span>&#xA0;[<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">1</span>]]<span class="delimiter">,</span>&#xA0;<span class="string">&apos;sort&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[[1,&#xA0;5,&#xA0;7],&#xA0;[1,&#xA0;2,&#xA0;3]]</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">invoke</span>([<span class="numeric">123</span><span class="delimiter">,</span>&#xA0;<span class="numeric">456</span>]<span class="delimiter">,</span>&#xA0;<span class="support">String</span><span class="delimiter">.</span><span class="support">prototype</span><span class="delimiter">.</span>split<span class="delimiter">,</span>&#xA0;<span class="string">&apos;&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[[&apos;1&apos;,&#xA0;&apos;2&apos;,&#xA0;&apos;3&apos;],&#xA0;[&apos;4&apos;,&#xA0;&apos;5&apos;,&#xA0;&apos;6&apos;]]</span></div></pre></div>

</div>
<div>
<h3 id="map"><a href="#map" class="fa fa-link"></a><code>_.map(collection, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3866">source</a> <a href="https://www.npmjs.com/package/lodash.map">npm package</a></p>
<p>Creates an array of values by running each element in the collection
through the callback. The callback is bound to <code>thisArg</code> and invoked with
three arguments; <em>(value, index|key, collection)</em>.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code>.</p>
<h4>Aliases</h4>
<p><em>_.collect</em></p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>[callback=identity]</code> <em>(Function|Object|string)</em>: The function called per iteration. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns a new array of the results of each <code>callback</code> execution.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">map</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(num)&#xA0;{&#xA0;return&#xA0;num&#xA0;*&#xA0;<span class="numeric">3</span>;&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[3,&#xA0;6,&#xA0;9]</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">map</span>({&#xA0;<span class="string">&apos;one&apos;</span>:&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;two&apos;</span>:&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;three&apos;</span>:&#xA0;<span class="numeric">3</span>&#xA0;}<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(num)&#xA0;{&#xA0;return&#xA0;num&#xA0;*&#xA0;<span class="numeric">3</span>;&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[3,&#xA0;6,&#xA0;9]&#xA0;(property&#xA0;order&#xA0;is&#xA0;not&#xA0;guaranteed&#xA0;across&#xA0;environments)</span></div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;[</div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span>&#xA0;}</div><div>];</div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.pluck&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">map</span>(characters<span class="delimiter">,</span>&#xA0;<span class="string">&apos;name&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[&apos;barney&apos;,&#xA0;&apos;fred&apos;]</span></div></pre></div>

</div>
<div>
<h3 id="max"><a href="#max" class="fa fa-link"></a><code>_.max(collection, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3924">source</a> <a href="https://www.npmjs.com/package/lodash.max">npm package</a></p>
<p>Retrieves the maximum value of a collection. If the collection is empty or
falsey <code>-Infinity</code> is returned. If a callback is provided it will be executed
for each value in the collection to generate the criterion by which the value
is ranked. The callback is bound to <code>thisArg</code> and invoked with three
arguments; <em>(value, index, collection)</em>.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>[callback=identity]</code> <em>(Function|Object|string)</em>: The function called per iteration. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>: Returns the maximum value.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">max</span>([<span class="numeric">4</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">8</span><span class="delimiter">,</span>&#xA0;<span class="numeric">6</span>]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;8</span></div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;[</div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span>&#xA0;}</div><div>];</div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">max</span>(characters<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(chr)&#xA0;{&#xA0;return&#xA0;chr<span class="delimiter">.</span>age;&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;name&apos;:&#xA0;&apos;fred&apos;,&#xA0;&apos;age&apos;:&#xA0;40&#xA0;};</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.pluck&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">max</span>(characters<span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;name&apos;:&#xA0;&apos;fred&apos;,&#xA0;&apos;age&apos;:&#xA0;40&#xA0;};</span></div></pre></div>

</div>
<div>
<h3 id="min"><a href="#min" class="fa fa-link"></a><code>_.min(collection, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3999">source</a> <a href="https://www.npmjs.com/package/lodash.min">npm package</a></p>
<p>Retrieves the minimum value of a collection. If the collection is empty or
falsey <code>Infinity</code> is returned. If a callback is provided it will be executed
for each value in the collection to generate the criterion by which the value
is ranked. The callback is bound to <code>thisArg</code> and invoked with three
arguments; <em>(value, index, collection)</em>.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>[callback=identity]</code> <em>(Function|Object|string)</em>: The function called per iteration. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>: Returns the minimum value.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">min</span>([<span class="numeric">4</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">8</span><span class="delimiter">,</span>&#xA0;<span class="numeric">6</span>]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;2</span></div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;[</div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span>&#xA0;}</div><div>];</div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">min</span>(characters<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(chr)&#xA0;{&#xA0;return&#xA0;chr<span class="delimiter">.</span>age;&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;name&apos;:&#xA0;&apos;barney&apos;,&#xA0;&apos;age&apos;:&#xA0;36&#xA0;};</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.pluck&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">min</span>(characters<span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;name&apos;:&#xA0;&apos;barney&apos;,&#xA0;&apos;age&apos;:&#xA0;36&#xA0;};</span></div></pre></div>

</div>
<div>
<h3 id="pluck"><a href="#pluck" class="fa fa-link"></a><code>_.pluck(collection, property)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4054">source</a> <a href="https://www.npmjs.com/package/lodash.pluck">npm package</a></p>
<p>Retrieves the value of a specified property from all elements in the collection.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>property</code> <em>(string)</em>: The name of the property to pluck.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns a new array of property values.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;[</div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span>&#xA0;}</div><div>];</div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">pluck</span>(characters<span class="delimiter">,</span>&#xA0;<span class="string">&apos;name&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[&apos;barney&apos;,&#xA0;&apos;fred&apos;]</span></div></pre></div>

</div>
<div>
<h3 id="reduce"><a href="#reduce" class="fa fa-link"></a><code>_.reduce(collection, [callback=identity], [accumulator], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4086">source</a> <a href="https://www.npmjs.com/package/lodash.reduce">npm package</a></p>
<p>Reduces a collection to a value which is the accumulated result of running
each element in the collection through the callback, where each successive
callback execution consumes the return value of the previous execution. If
<code>accumulator</code> is not provided the first element of the collection will be
used as the initial <code>accumulator</code> value. The callback is bound to <code>thisArg</code>
and invoked with four arguments; <em>(accumulator, value, index|key, collection)</em>.</p>
<h4>Aliases</h4>
<p><em>_.foldl, _.inject</em></p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>[callback=identity]</code> <em>(Function)</em>: The function called per iteration.</li>
<li><code>[accumulator]</code> <em>(*)</em>: Initial value of the accumulator.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>: Returns the accumulated value.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;sum&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">reduce</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(sum<span class="delimiter">,</span>&#xA0;num)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;sum&#xA0;+&#xA0;num;</div><div>});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;6</span></div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;mapped&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">reduce</span>({&#xA0;<span class="string">&apos;a&apos;</span>:&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;b&apos;</span>:&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;c&apos;</span>:&#xA0;<span class="numeric">3</span>&#xA0;}<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(result<span class="delimiter">,</span>&#xA0;num<span class="delimiter">,</span>&#xA0;key)&#xA0;{</div><div>&#xA0;&#xA0;result[key]&#xA0;=&#xA0;num&#xA0;*&#xA0;<span class="numeric">3</span>;</div><div>&#xA0;&#xA0;return&#xA0;result;</div><div>}<span class="delimiter">,</span>&#xA0;{});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;a&apos;:&#xA0;3,&#xA0;&apos;b&apos;:&#xA0;6,&#xA0;&apos;c&apos;:&#xA0;9&#xA0;}</span></div></pre></div>

</div>
<div>
<h3 id="reduceRight"><a href="#reduceRight" class="fa fa-link"></a><code>_.reduceRight(collection, [callback=identity], [accumulator], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4129">source</a> <a href="https://www.npmjs.com/package/lodash.reduceright">npm package</a></p>
<p>This method is like <a href="#reduce"><code>_.reduce</code></a> except that it iterates over elements
of a <code>collection</code> from right to left.</p>
<h4>Aliases</h4>
<p><em>_.foldr</em></p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>[callback=identity]</code> <em>(Function)</em>: The function called per iteration.</li>
<li><code>[accumulator]</code> <em>(*)</em>: Initial value of the accumulator.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>: Returns the accumulated value.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;list&#xA0;=&#xA0;[[<span class="numeric">0</span><span class="delimiter">,</span>&#xA0;<span class="numeric">1</span>]<span class="delimiter">,</span>&#xA0;[<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]<span class="delimiter">,</span>&#xA0;[<span class="numeric">4</span><span class="delimiter">,</span>&#xA0;<span class="numeric">5</span>]];</div><div><span class="type">var</span>&#xA0;flat&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">reduceRight</span>(list<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(a<span class="delimiter">,</span>&#xA0;b)&#xA0;{&#xA0;return&#xA0;a<span class="delimiter method">.</span><span class="support">concat</span>(b);&#xA0;}<span class="delimiter">,</span>&#xA0;[]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[4,&#xA0;5,&#xA0;2,&#xA0;3,&#xA0;0,&#xA0;1]</span></div></pre></div>

</div>
<div>
<h3 id="reject"><a href="#reject" class="fa fa-link"></a><code>_.reject(collection, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4178">source</a> <a href="https://www.npmjs.com/package/lodash.reject">npm package</a></p>
<p>The opposite of <a href="#filter"><code>_.filter</code></a> this method returns the elements of a
collection that the callback does <strong>not</strong> return truey for.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>[callback=identity]</code> <em>(Function|Object|string)</em>: The function called per iteration. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns a new array of elements that failed the callback check.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;odds&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">reject</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;<span class="numeric">4</span><span class="delimiter">,</span>&#xA0;<span class="numeric">5</span><span class="delimiter">,</span>&#xA0;<span class="numeric">6</span>]<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(num)&#xA0;{&#xA0;return&#xA0;num&#xA0;%&#xA0;<span class="numeric">2</span>&#xA0;==&#xA0;<span class="numeric">0</span>;&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[1,&#xA0;3,&#xA0;5]</span></div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;[</div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;false&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;true&#xA0;}</div><div>];</div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.pluck&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">reject</span>(characters<span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[{&#xA0;&apos;name&apos;:&#xA0;&apos;barney&apos;,&#xA0;&apos;age&apos;:&#xA0;36,&#xA0;&apos;blocked&apos;:&#xA0;false&#xA0;}]</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.where&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">reject</span>(characters<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[{&#xA0;&apos;name&apos;:&#xA0;&apos;fred&apos;,&#xA0;&apos;age&apos;:&#xA0;40,&#xA0;&apos;blocked&apos;:&#xA0;true&#xA0;}]</span></div></pre></div>

</div>
<div>
<h3 id="sample"><a href="#sample" class="fa fa-link"></a><code>_.sample(collection, [n])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4204">source</a> <a href="https://www.npmjs.com/package/lodash.sample">npm package</a></p>
<p>Retrieves a random element or <code>n</code> random elements from a collection.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to sample.</li>
<li><code>[n]</code> <em>(number)</em>: The number of elements to sample.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array): Returns the random sample(s)</em> of <code>collection</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">sample</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;<span class="numeric">4</span>]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;2</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">sample</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;<span class="numeric">4</span>]<span class="delimiter">,</span>&#xA0;<span class="numeric">2</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[3,&#xA0;1]</span></div></pre></div>

</div>
<div>
<h3 id="shuffle"><a href="#shuffle" class="fa fa-link"></a><code>_.shuffle(collection)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4232">source</a> <a href="https://www.npmjs.com/package/lodash.shuffle">npm package</a></p>
<p>Creates an array of shuffled values, using a version of the Fisher-Yates
shuffle. See <a href="http://en.wikipedia.org/wiki/Fisher-Yates_shuffle">http://en.wikipedia.org/wiki/Fisher-Yates_shuffle</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to shuffle.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns a new shuffled collection.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">shuffle</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;<span class="numeric">4</span><span class="delimiter">,</span>&#xA0;<span class="numeric">5</span><span class="delimiter">,</span>&#xA0;<span class="numeric">6</span>]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[4,&#xA0;1,&#xA0;6,&#xA0;3,&#xA0;5,&#xA0;2]</span></div></pre></div>

</div>
<div>
<h3 id="size"><a href="#size" class="fa fa-link"></a><code>_.size(collection)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4265">source</a> <a href="https://www.npmjs.com/package/lodash.size">npm package</a></p>
<p>Gets the size of the <code>collection</code> by returning <code>collection.length</code> for arrays
and array-like objects or the number of own enumerable properties for objects.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to inspect.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>: Returns <code>collection.length</code> or number of own enumerable properties.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter">.</span><span class="support">size</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span>]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;2</span></div><div>&#xA0;</div><div>_<span class="delimiter">.</span><span class="support">size</span>({&#xA0;<span class="string">&apos;one&apos;</span>:&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;two&apos;</span>:&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;three&apos;</span>:&#xA0;<span class="numeric">3</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;3</span></div><div>&#xA0;</div><div>_<span class="delimiter">.</span><span class="support">size</span>(<span class="string">&apos;pebbles&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;7</span></div></pre></div>

</div>
<div>
<h3 id="some"><a href="#some" class="fa fa-link"></a><code>_.some(collection, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4312">source</a> <a href="https://www.npmjs.com/package/lodash.some">npm package</a></p>
<p>Checks if the callback returns a truey value for <strong>any</strong> element of a
collection. The function returns as soon as it finds a passing value and
does not iterate over the entire collection. The callback is bound to
<code>thisArg</code> and invoked with three arguments; <em>(value, index|key, collection)</em>.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code>.</p>
<h4>Aliases</h4>
<p><em>_.any</em></p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>[callback=identity]</code> <em>(Function|Object|string)</em>: The function called per iteration. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>: Returns <code>true</code> if any element passed the callback check, else <code>false</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">some</span>([null<span class="delimiter">,</span>&#xA0;<span class="numeric">0</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;yes&apos;</span><span class="delimiter">,</span>&#xA0;false]<span class="delimiter">,</span>&#xA0;<span class="support">Boolean</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;[</div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;false&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;true&#xA0;}</div><div>];</div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.pluck&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">some</span>(characters<span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.where&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">some</span>(characters<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">1</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;false</span></div></pre></div>

</div>
<div>
<h3 id="sortBy"><a href="#sortBy" class="fa fa-link"></a><code>_.sortBy(collection, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4382">source</a> <a href="https://www.npmjs.com/package/lodash.sortby">npm package</a></p>
<p>Creates an array of elements, sorted in ascending order by the results of
running each element in a collection through the callback. This method
performs a stable sort, that is, it will preserve the original sort order
of equal elements. The callback is bound to <code>thisArg</code> and invoked with
three arguments; <em>(value, index|key, collection)</em>.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an array of property names is provided for <code>callback</code> the collection
will be sorted by each property value.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>[callback=identity]</code> <em>(Array|Function|Object|string)</em>: The function called per iteration. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns a new array of sorted elements.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">sortBy</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(num)&#xA0;{&#xA0;return&#xA0;<span class="support">Math</span><span class="delimiter method">.</span><span class="support">sin</span>(num);&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[3,&#xA0;1,&#xA0;2]</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">sortBy</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(num)&#xA0;{&#xA0;return&#xA0;this<span class="delimiter method">.</span><span class="name">sin</span>(num);&#xA0;}<span class="delimiter">,</span>&#xA0;<span class="support">Math</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[3,&#xA0;1,&#xA0;2]</span></div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;[</div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">26</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">30</span>&#xA0;}</div><div>];</div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.pluck&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">map</span>(_<span class="delimiter method">.</span><span class="name">sortBy</span>(characters<span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>)<span class="delimiter">,</span>&#xA0;_<span class="delimiter">.</span>values);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[[&apos;barney&apos;,&#xA0;26],&#xA0;[&apos;fred&apos;,&#xA0;30],&#xA0;[&apos;barney&apos;,&#xA0;36],&#xA0;[&apos;fred&apos;,&#xA0;40]]</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;sorting&#xA0;by&#xA0;multiple&#xA0;properties</span></div><div>_<span class="delimiter method">.</span><span class="name">map</span>(_<span class="delimiter method">.</span><span class="name">sortBy</span>(characters<span class="delimiter">,</span>&#xA0;[<span class="string">&apos;name&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>])<span class="delimiter">,</span>&#xA0;_<span class="delimiter">.</span>values);</div><div><span class="comment">//&#xA0;=&#xA0;&gt;&#xA0;[[&apos;barney&apos;,&#xA0;26],&#xA0;[&apos;barney&apos;,&#xA0;36],&#xA0;[&apos;fred&apos;,&#xA0;30],&#xA0;[&apos;fred&apos;,&#xA0;40]]</span></div></pre></div>

</div>
<div>
<h3 id="toArray"><a href="#toArray" class="fa fa-link"></a><code>_.toArray(collection)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4428">source</a> <a href="https://www.npmjs.com/package/lodash.toarray">npm package</a></p>
<p>Converts the <code>collection</code> to an array.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to convert.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns the new converted array.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>(<span class="type">function</span>()&#xA0;{&#xA0;return&#xA0;_<span class="delimiter method">.</span><span class="name">toArray</span>(arguments)<span class="delimiter method">.</span><span class="support">slice</span>(<span class="numeric">1</span>);&#xA0;})(<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;<span class="numeric">4</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[2,&#xA0;3,&#xA0;4]</span></div></pre></div>

</div>
<div>
<h3 id="where"><a href="#where" class="fa fa-link"></a><code>_.where(collection, props)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4462">source</a> <a href="https://www.npmjs.com/package/lodash.where">npm package</a></p>
<p>Performs a deep comparison of each element in a <code>collection</code> to the given
<code>properties</code> object, returning an array of all elements that have equivalent
property values.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>props</code> <em>(Object)</em>: The object of property values to filter by.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns a new array of elements that have the given properties.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;[</div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;pets&apos;</span>:&#xA0;[<span class="string">&apos;hoppy&apos;</span>]&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;pets&apos;</span>:&#xA0;[<span class="string">&apos;baby&#xA0;puss&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;dino&apos;</span>]&#xA0;}</div><div>];</div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">where</span>(characters<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[{&#xA0;&apos;name&apos;:&#xA0;&apos;barney&apos;,&#xA0;&apos;age&apos;:&#xA0;36,&#xA0;&apos;pets&apos;:&#xA0;[&apos;hoppy&apos;]&#xA0;}]</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">where</span>(characters<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;pets&apos;</span>:&#xA0;[<span class="string">&apos;dino&apos;</span>]&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[{&#xA0;&apos;name&apos;:&#xA0;&apos;fred&apos;,&#xA0;&apos;age&apos;:&#xA0;40,&#xA0;&apos;pets&apos;:&#xA0;[&apos;baby&#xA0;puss&apos;,&#xA0;&apos;dino&apos;]&#xA0;}]</span></div></pre></div>

</div>
</div>
<div>
<h2><code>&#x201C;Functions&#x201D; Methods</code></h2>
<div>
<h3 id="after"><a href="#after" class="fa fa-link"></a><code>_.after(n, func)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5505">source</a> <a href="https://www.npmjs.com/package/lodash.after">npm package</a></p>
<p>Creates a function that executes <code>func</code>, with  the <code>this</code> binding and
arguments of the created function, only after being called <code>n</code> times.</p>
<h4>Arguments</h4>
<ol>
<li><code>n</code> <em>(number)</em>: The number of times the function must be called before <code>func</code> is executed.</li>
<li><code>func</code> <em>(Function)</em>: The function to restrict.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>: Returns the new restricted function.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;saves&#xA0;=&#xA0;[<span class="string">&apos;profile&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;settings&apos;</span>];</div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;done&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">after</span>(saves<span class="delimiter">.</span><span class="support">length</span><span class="delimiter">,</span>&#xA0;<span class="type">function</span>()&#xA0;{</div><div>&#xA0;&#xA0;<span class="name type console">console</span><span class="delimiter method">.</span><span class="support console">log</span>(<span class="string">&apos;Done&#xA0;saving!&apos;</span>);</div><div>});</div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">forEach</span>(saves<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(type)&#xA0;{</div><div>&#xA0;&#xA0;<span class="name">asyncSave</span>({&#xA0;<span class="string">&apos;type&apos;</span>:&#xA0;type<span class="delimiter">,</span>&#xA0;<span class="string">&apos;complete&apos;</span>:&#xA0;done&#xA0;});</div><div>});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;logs&#xA0;&apos;Done&#xA0;saving!&apos;,&#xA0;after&#xA0;all&#xA0;saves&#xA0;have&#xA0;completed</span></div></pre></div>

</div>
<div>
<h3 id="bind"><a href="#bind" class="fa fa-link"></a><code>_.bind(func, [thisArg], [arg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5538">source</a> <a href="https://www.npmjs.com/package/lodash.bind">npm package</a></p>
<p>Creates a function that, when called, invokes <code>func</code> with the <code>this</code>
binding of <code>thisArg</code> and prepends any additional <code>bind</code> arguments to those
provided to the bound function.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to bind.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>func</code>.</li>
<li><code>[arg]</code> <em>(...*)</em>: Arguments to be partially applied.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>: Returns the new bound function.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;<span class="name">func</span>&#xA0;=&#xA0;<span class="type">function</span>(greeting)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;greeting&#xA0;+&#xA0;<span class="string">&apos;&#xA0;&apos;</span>&#xA0;+&#xA0;this<span class="delimiter">.</span><span class="support">name</span>;</div><div>};</div><div>&#xA0;</div><div>func&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">bind</span>(func<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span>&#xA0;}<span class="delimiter">,</span>&#xA0;<span class="string">&apos;hi&apos;</span>);</div><div><span class="name">func</span>();</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;hi&#xA0;fred&apos;</span></div></pre></div>

</div>
<div>
<h3 id="bindAll"><a href="#bindAll" class="fa fa-link"></a><code>_.bindAll(object, [methodName])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5568">source</a> <a href="https://www.npmjs.com/package/lodash.bindall">npm package</a></p>
<p>Binds methods of an object to the object itself, overwriting the existing
method. Method names may be specified as individual arguments or as arrays
of method names. If no method names are provided all the function properties
of <code>object</code> will be bound.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to bind and assign the bound methods to.</li>
<li><code>[methodName]</code> <em>(...string)</em>: The object method names to bind, specified as individual method names or arrays of method names.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>: Returns <code>object</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;view&#xA0;=&#xA0;{</div><div>&#xA0;&#xA0;<span class="string">&apos;label&apos;</span>:&#xA0;<span class="string">&apos;docs&apos;</span><span class="delimiter">,</span></div><div>&#xA0;&#xA0;<span class="string">&apos;onClick&apos;</span>:&#xA0;<span class="type">function</span>()&#xA0;{&#xA0;<span class="name type console">console</span><span class="delimiter method">.</span><span class="support console">log</span>(<span class="string">&apos;clicked&#xA0;&apos;</span>&#xA0;+&#xA0;this<span class="delimiter">.</span><span class="support">label</span>);&#xA0;}</div><div>};</div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">bindAll</span>(view);</div><div><span class="name">jQuery</span>(<span class="string">&apos;#docs&apos;</span>)<span class="delimiter method">.</span><span class="name">on</span>(<span class="string">&apos;click&apos;</span><span class="delimiter">,</span>&#xA0;view<span class="delimiter">.</span>onClick);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;logs&#xA0;&apos;clicked&#xA0;docs&apos;,&#xA0;when&#xA0;the&#xA0;button&#xA0;is&#xA0;clicked</span></div></pre></div>

</div>
<div>
<h3 id="bindKey"><a href="#bindKey" class="fa fa-link"></a><code>_.bindKey(object, key, [arg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5614">source</a> <a href="https://www.npmjs.com/package/lodash.bindkey">npm package</a></p>
<p>Creates a function that, when called, invokes the method at <code>object[key]</code>
and prepends any additional <code>bindKey</code> arguments to those provided to the bound
function. This method differs from <a href="#bind"><code>_.bind</code></a> by allowing bound functions to
reference methods that will be redefined or don&apos;t yet exist.
See <a href="http://michaux.ca/articles/lazy-function-definition-pattern">http://michaux.ca/articles/lazy-function-definition-pattern</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object the method belongs to.</li>
<li><code>key</code> <em>(string)</em>: The key of the method.</li>
<li><code>[arg]</code> <em>(...*)</em>: Arguments to be partially applied.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>: Returns the new bound function.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;object&#xA0;=&#xA0;{</div><div>&#xA0;&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span></div><div>&#xA0;&#xA0;<span class="string">&apos;greet&apos;</span>:&#xA0;<span class="type">function</span>(greeting)&#xA0;{</div><div>&#xA0;&#xA0;&#xA0;&#xA0;return&#xA0;greeting&#xA0;+&#xA0;<span class="string">&apos;&#xA0;&apos;</span>&#xA0;+&#xA0;this<span class="delimiter">.</span><span class="support">name</span>;</div><div>&#xA0;&#xA0;}</div><div>};</div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;func&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">bindKey</span>(object<span class="delimiter">,</span>&#xA0;<span class="string">&apos;greet&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;hi&apos;</span>);</div><div><span class="name">func</span>();</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;hi&#xA0;fred&apos;</span></div><div>&#xA0;</div><div>object<span class="delimiter method">.</span><span class="name">greet</span>&#xA0;=&#xA0;<span class="type">function</span>(greeting)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;greeting&#xA0;+&#xA0;<span class="string">&apos;ya&#xA0;&apos;</span>&#xA0;+&#xA0;this<span class="delimiter">.</span><span class="support">name</span>&#xA0;+&#xA0;<span class="string">&apos;!&apos;</span>;</div><div>};</div><div>&#xA0;</div><div><span class="name">func</span>();</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;hiya&#xA0;fred!&apos;</span></div></pre></div>

</div>
<div>
<h3 id="compose"><a href="#compose" class="fa fa-link"></a><code>_.compose([func])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5650">source</a> <a href="https://www.npmjs.com/package/lodash.compose">npm package</a></p>
<p>Creates a function that is the composition of the provided functions,
where each function consumes the return value of the function that follows.
For example, composing the functions <code>f()</code>, <code>g()</code>, and <code>h()</code> produces <code>f(g(h()))</code>.
Each function is executed with the <code>this</code> binding of the composed function.</p>
<h4>Arguments</h4>
<ol>
<li><code>[func]</code> <em>(...Function)</em>: Functions to compose.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>: Returns the new composed function.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;realNameMap&#xA0;=&#xA0;{</div><div>&#xA0;&#xA0;<span class="string">&apos;pebbles&apos;</span>:&#xA0;<span class="string">&apos;penelope&apos;</span></div><div>};</div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;<span class="name">format</span>&#xA0;=&#xA0;<span class="type">function</span>(name)&#xA0;{</div><div>&#xA0;&#xA0;name&#xA0;=&#xA0;realNameMap[name<span class="delimiter method">.</span><span class="support">toLowerCase</span>()]&#xA0;||&#xA0;name;</div><div>&#xA0;&#xA0;return&#xA0;name<span class="delimiter method">.</span><span class="support">charAt</span>(<span class="numeric">0</span>)<span class="delimiter method">.</span><span class="support">toUpperCase</span>()&#xA0;+&#xA0;name<span class="delimiter method">.</span><span class="support">slice</span>(<span class="numeric">1</span>)<span class="delimiter method">.</span><span class="support">toLowerCase</span>();</div><div>};</div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;<span class="name">greet</span>&#xA0;=&#xA0;<span class="type">function</span>(formatted)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;<span class="string">&apos;Hiya&#xA0;&apos;</span>&#xA0;+&#xA0;formatted&#xA0;+&#xA0;<span class="string">&apos;!&apos;</span>;</div><div>};</div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;welcome&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">compose</span>(greet<span class="delimiter">,</span>&#xA0;format);</div><div><span class="name">welcome</span>(<span class="string">&apos;pebbles&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;Hiya&#xA0;Penelope!&apos;</span></div></pre></div>

</div>
<div>
<h3 id="curry"><a href="#curry" class="fa fa-link"></a><code>_.curry(func, [arity=func.length])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5698">source</a> <a href="https://www.npmjs.com/package/lodash.curry">npm package</a></p>
<p>Creates a function which accepts one or more arguments of <code>func</code> that when
invoked either executes <code>func</code> returning its result, if all <code>func</code> arguments
have been provided, or returns a function that accepts one or more of the
remaining <code>func</code> arguments, and so on. The arity of <code>func</code> can be specified
if <code>func.length</code> is not sufficient.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to curry.</li>
<li><code>[arity=func.length]</code> <em>(number)</em>: The arity of <code>func</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>: Returns the new curried function.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;curried&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">curry</span>(<span class="type">function</span>(a<span class="delimiter">,</span>&#xA0;b<span class="delimiter">,</span>&#xA0;c)&#xA0;{</div><div>&#xA0;&#xA0;<span class="name type console">console</span><span class="delimiter method">.</span><span class="support console">log</span>(a&#xA0;+&#xA0;b&#xA0;+&#xA0;c);</div><div>});</div><div>&#xA0;</div><div><span class="name">curried</span>(<span class="numeric">1</span>)(<span class="numeric">2</span>)(<span class="numeric">3</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;6</span></div><div>&#xA0;</div><div><span class="name">curried</span>(<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span>)(<span class="numeric">3</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;6</span></div><div>&#xA0;</div><div><span class="name">curried</span>(<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;6</span></div></pre></div>

</div>
<div>
<h3 id="debounce"><a href="#debounce" class="fa fa-link"></a><code>_.debounce(func, wait, [options])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5742">source</a> <a href="https://www.npmjs.com/package/lodash.debounce">npm package</a></p>
<p>Creates a function that will delay the execution of <code>func</code> until after
<code>wait</code> milliseconds have elapsed since the last time it was invoked.
Provide an options object to indicate that <code>func</code> should be invoked on
the leading and/or trailing edge of the <code>wait</code> timeout. Subsequent calls
to the debounced function will return the result of the last <code>func</code> call.
<br>
<br>
Note: If <code>leading</code> and <code>trailing</code> options are <code>true</code> <code>func</code> will be called
on the trailing edge of the timeout only if the the debounced function is
invoked more than once during the <code>wait</code> timeout.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to debounce.</li>
<li><code>wait</code> <em>(number)</em>: The number of milliseconds to delay.</li>
<li><code>[options]</code> <em>(Object)</em>: The options object.</li>
<li><code>[options.leading=false]</code> <em>(boolean)</em>: Specify execution on the leading edge of the timeout.</li>
<li><code>[options.maxWait]</code> <em>(number)</em>: The maximum time <code>func</code> is allowed to be delayed before it&apos;s called.</li>
<li><code>[options.trailing=true]</code> <em>(boolean)</em>: Specify execution on the trailing edge of the timeout.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>: Returns the new debounced function.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="comment">//&#xA0;avoid&#xA0;costly&#xA0;calculations&#xA0;while&#xA0;the&#xA0;window&#xA0;size&#xA0;is&#xA0;in&#xA0;flux</span></div><div><span class="type">var</span>&#xA0;lazyLayout&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">debounce</span>(calculateLayout<span class="delimiter">,</span>&#xA0;<span class="numeric">150</span>);</div><div><span class="name">jQuery</span>(<span class="support">window</span>)<span class="delimiter method">.</span><span class="name">on</span>(<span class="string">&apos;resize&apos;</span><span class="delimiter">,</span>&#xA0;lazyLayout);</div><div>&#xA0;</div><div><span class="comment">//&#xA0;execute&#xA0;`sendMail`&#xA0;when&#xA0;the&#xA0;click&#xA0;event&#xA0;is&#xA0;fired,&#xA0;debouncing&#xA0;subsequent&#xA0;calls</span></div><div><span class="name">jQuery</span>(<span class="string">&apos;#postbox&apos;</span>)<span class="delimiter method">.</span><span class="name">on</span>(<span class="string">&apos;click&apos;</span><span class="delimiter">,</span>&#xA0;_<span class="delimiter method">.</span><span class="name">debounce</span>(sendMail<span class="delimiter">,</span>&#xA0;<span class="numeric">300</span><span class="delimiter">,</span>&#xA0;{</div><div>&#xA0;&#xA0;<span class="string">&apos;leading&apos;</span>:&#xA0;true<span class="delimiter">,</span></div><div>&#xA0;&#xA0;<span class="string">&apos;trailing&apos;</span>:&#xA0;false</div><div>});</div><div>&#xA0;</div><div><span class="comment">//&#xA0;ensure&#xA0;`batchLog`&#xA0;is&#xA0;executed&#xA0;once&#xA0;after&#xA0;1&#xA0;second&#xA0;of&#xA0;debounced&#xA0;calls</span></div><div><span class="type">var</span>&#xA0;source&#xA0;=&#xA0;new&#xA0;<span class="name type">EventSource</span>(<span class="string">&apos;/stream&apos;</span>);</div><div>source<span class="delimiter method">.</span><span class="name">addEventListener</span>(<span class="string">&apos;message&apos;</span><span class="delimiter">,</span>&#xA0;_<span class="delimiter method">.</span><span class="name">debounce</span>(batchLog<span class="delimiter">,</span>&#xA0;<span class="numeric">250</span><span class="delimiter">,</span>&#xA0;{</div><div>&#xA0;&#xA0;<span class="string">&apos;maxWait&apos;</span>:&#xA0;<span class="numeric">1000</span></div><div>}<span class="delimiter">,</span>&#xA0;false);</div></pre></div>

</div>
<div>
<h3 id="defer"><a href="#defer" class="fa fa-link"></a><code>_.defer(func, [arg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5858">source</a> <a href="https://www.npmjs.com/package/lodash.defer">npm package</a></p>
<p>Defers executing the <code>func</code> function until the current call stack has cleared.
Additional arguments will be provided to <code>func</code> when it is invoked.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to defer.</li>
<li><code>[arg]</code> <em>(...*)</em>: Arguments to invoke the function with.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>: Returns the timer id.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter">.</span><span class="support">defer</span>(<span class="type">function</span>(text)&#xA0;{&#xA0;<span class="name type console">console</span><span class="delimiter method">.</span><span class="support console">log</span>(text);&#xA0;}<span class="delimiter">,</span>&#xA0;<span class="string">&apos;deferred&apos;</span>);</div><div><span class="comment">//&#xA0;logs&#xA0;&apos;deferred&apos;&#xA0;after&#xA0;one&#xA0;or&#xA0;more&#xA0;milliseconds</span></div></pre></div>

</div>
<div>
<h3 id="delay"><a href="#delay" class="fa fa-link"></a><code>_.delay(func, wait, [arg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5882">source</a> <a href="https://www.npmjs.com/package/lodash.delay">npm package</a></p>
<p>Executes the <code>func</code> function after <code>wait</code> milliseconds. Additional arguments
will be provided to <code>func</code> when it is invoked.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to delay.</li>
<li><code>wait</code> <em>(number)</em>: The number of milliseconds to delay execution.</li>
<li><code>[arg]</code> <em>(...*)</em>: Arguments to invoke the function with.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>: Returns the timer id.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">delay</span>(<span class="type">function</span>(text)&#xA0;{&#xA0;<span class="name type console">console</span><span class="delimiter method">.</span><span class="support console">log</span>(text);&#xA0;}<span class="delimiter">,</span>&#xA0;<span class="numeric">1000</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;later&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;logs&#xA0;&apos;later&apos;&#xA0;after&#xA0;one&#xA0;second</span></div></pre></div>

</div>
<div>
<h3 id="memoize"><a href="#memoize" class="fa fa-link"></a><code>_.memoize(func, [resolver])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5927">source</a> <a href="https://www.npmjs.com/package/lodash.memoize">npm package</a></p>
<p>Creates a function that memoizes the result of <code>func</code>. If <code>resolver</code> is
provided it will be used to determine the cache key for storing the result
based on the arguments provided to the memoized function. By default, the
first argument provided to the memoized function is used as the cache key.
The <code>func</code> is executed with the <code>this</code> binding of the memoized function.
The result cache is exposed as the <code>cache</code> property on the memoized function.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to have its output memoized.</li>
<li><code>[resolver]</code> <em>(Function)</em>: A function used to resolve the cache key.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>: Returns the new memoizing function.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;fibonacci&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">memoize</span>(<span class="type">function</span>(n)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;n&#xA0;&lt;&#xA0;<span class="numeric">2</span>&#xA0;?&#xA0;n&#xA0;:&#xA0;<span class="name">fibonacci</span>(n&#xA0;-&#xA0;<span class="numeric">1</span>)&#xA0;+&#xA0;<span class="name">fibonacci</span>(n&#xA0;-&#xA0;<span class="numeric">2</span>);</div><div>});</div><div>&#xA0;</div><div><span class="name">fibonacci</span>(<span class="numeric">9</span>)</div><div><span class="comment">//&#xA0;=&gt;&#xA0;34</span></div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;data&#xA0;=&#xA0;{</div><div>&#xA0;&#xA0;<span class="string">&apos;fred&apos;</span>:&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;<span class="string">&apos;pebbles&apos;</span>:&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;pebbles&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">1</span>&#xA0;}</div><div>};</div><div>&#xA0;</div><div><span class="comment">//&#xA0;modifying&#xA0;the&#xA0;result&#xA0;cache</span></div><div><span class="type">var</span>&#xA0;get&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">memoize</span>(<span class="type">function</span>(name)&#xA0;{&#xA0;return&#xA0;data[name];&#xA0;}<span class="delimiter">,</span>&#xA0;_<span class="delimiter">.</span>identity);</div><div><span class="name">get</span>(<span class="string">&apos;pebbles&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;name&apos;:&#xA0;&apos;pebbles&apos;,&#xA0;&apos;age&apos;:&#xA0;1&#xA0;}</span></div><div>&#xA0;</div><div>get<span class="delimiter">.</span>cache<span class="delimiter">.</span>pebbles<span class="delimiter">.</span><span class="support">name</span>&#xA0;=&#xA0;<span class="string">&apos;penelope&apos;</span>;</div><div><span class="name">get</span>(<span class="string">&apos;pebbles&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;name&apos;:&#xA0;&apos;penelope&apos;,&#xA0;&apos;age&apos;:&#xA0;1&#xA0;}</span></div></pre></div>

</div>
<div>
<h3 id="once"><a href="#once" class="fa fa-link"></a><code>_.once(func)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5960">source</a> <a href="https://www.npmjs.com/package/lodash.once">npm package</a></p>
<p>Creates a function that is restricted to execute <code>func</code> once. Repeat calls to
the function will return the value of the first call. The <code>func</code> is executed
with the <code>this</code> binding of the created function.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to restrict.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>: Returns the new restricted function.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;initialize&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">once</span>(createApplication);</div><div><span class="name">initialize</span>();</div><div><span class="name">initialize</span>();</div><div><span class="comment">//&#xA0;`initialize`&#xA0;executes&#xA0;`createApplication`&#xA0;once</span></div></pre></div>

</div>
<div>
<h3 id="partial"><a href="#partial" class="fa fa-link"></a><code>_.partial(func, [arg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5998">source</a> <a href="https://www.npmjs.com/package/lodash.partial">npm package</a></p>
<p>Creates a function that, when called, invokes <code>func</code> with any additional
<code>partial</code> arguments prepended to those provided to the new function. This
method is similar to <a href="#bind"><code>_.bind</code></a> except it does <strong>not</strong> alter the <code>this</code> binding.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to partially apply arguments to.</li>
<li><code>[arg]</code> <em>(...*)</em>: Arguments to be partially applied.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>: Returns the new partially applied function.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;<span class="name">greet</span>&#xA0;=&#xA0;<span class="type">function</span>(greeting<span class="delimiter">,</span>&#xA0;name)&#xA0;{&#xA0;return&#xA0;greeting&#xA0;+&#xA0;<span class="string">&apos;&#xA0;&apos;</span>&#xA0;+&#xA0;name;&#xA0;};</div><div><span class="type">var</span>&#xA0;hi&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">partial</span>(greet<span class="delimiter">,</span>&#xA0;<span class="string">&apos;hi&apos;</span>);</div><div><span class="name">hi</span>(<span class="string">&apos;fred&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;hi&#xA0;fred&apos;</span></div></pre></div>

</div>
<div>
<h3 id="partialRight"><a href="#partialRight" class="fa fa-link"></a><code>_.partialRight(func, [arg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6029">source</a> <a href="https://www.npmjs.com/package/lodash.partialright">npm package</a></p>
<p>This method is like <a href="#partial"><code>_.partial</code></a> except that <code>partial</code> arguments are
appended to those provided to the new function.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to partially apply arguments to.</li>
<li><code>[arg]</code> <em>(...*)</em>: Arguments to be partially applied.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>: Returns the new partially applied function.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;defaultsDeep&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">partialRight</span>(_<span class="delimiter">.</span>merge<span class="delimiter">,</span>&#xA0;_<span class="delimiter">.</span>defaults);</div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;options&#xA0;=&#xA0;{</div><div>&#xA0;&#xA0;<span class="string">&apos;variable&apos;</span>:&#xA0;<span class="string">&apos;data&apos;</span><span class="delimiter">,</span></div><div>&#xA0;&#xA0;<span class="string">&apos;imports&apos;</span>:&#xA0;{&#xA0;<span class="string">&apos;jq&apos;</span>:&#xA0;$&#xA0;}</div><div>};</div><div>&#xA0;</div><div><span class="name">defaultsDeep</span>(options<span class="delimiter">,</span>&#xA0;_<span class="delimiter">.</span>templateSettings);</div><div>&#xA0;</div><div>options<span class="delimiter">.</span>variable</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;data&apos;</span></div><div>&#xA0;</div><div>options<span class="delimiter">.</span>imports</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;_&apos;:&#xA0;_,&#xA0;&apos;jq&apos;:&#xA0;$&#xA0;}</span></div></pre></div>

</div>
<div>
<h3 id="throttle"><a href="#throttle" class="fa fa-link"></a><code>_.throttle(func, wait, [options])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6064">source</a> <a href="https://www.npmjs.com/package/lodash.throttle">npm package</a></p>
<p>Creates a function that, when executed, will only call the <code>func</code> function
at most once per every <code>wait</code> milliseconds. Provide an options object to
indicate that <code>func</code> should be invoked on the leading and/or trailing edge
of the <code>wait</code> timeout. Subsequent calls to the throttled function will
return the result of the last <code>func</code> call.
<br>
<br>
Note: If <code>leading</code> and <code>trailing</code> options are <code>true</code> <code>func</code> will be called
on the trailing edge of the timeout only if the the throttled function is
invoked more than once during the <code>wait</code> timeout.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to throttle.</li>
<li><code>wait</code> <em>(number)</em>: The number of milliseconds to throttle executions to.</li>
<li><code>[options]</code> <em>(Object)</em>: The options object.</li>
<li><code>[options.leading=true]</code> <em>(boolean)</em>: Specify execution on the leading edge of the timeout.</li>
<li><code>[options.trailing=true]</code> <em>(boolean)</em>: Specify execution on the trailing edge of the timeout.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>: Returns the new throttled function.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="comment">//&#xA0;avoid&#xA0;excessively&#xA0;updating&#xA0;the&#xA0;position&#xA0;while&#xA0;scrolling</span></div><div><span class="type">var</span>&#xA0;throttled&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">throttle</span>(updatePosition<span class="delimiter">,</span>&#xA0;<span class="numeric">100</span>);</div><div><span class="name">jQuery</span>(<span class="support">window</span>)<span class="delimiter method">.</span><span class="name">on</span>(<span class="string">&apos;scroll&apos;</span><span class="delimiter">,</span>&#xA0;throttled);</div><div>&#xA0;</div><div><span class="comment">//&#xA0;execute&#xA0;`renewToken`&#xA0;when&#xA0;the&#xA0;click&#xA0;event&#xA0;is&#xA0;fired,&#xA0;but&#xA0;not&#xA0;more&#xA0;than&#xA0;once&#xA0;every&#xA0;5&#xA0;minutes</span></div><div><span class="name">jQuery</span>(<span class="string">&apos;.interactive&apos;</span>)<span class="delimiter method">.</span><span class="name">on</span>(<span class="string">&apos;click&apos;</span><span class="delimiter">,</span>&#xA0;_<span class="delimiter method">.</span><span class="name">throttle</span>(renewToken<span class="delimiter">,</span>&#xA0;<span class="numeric">300000</span><span class="delimiter">,</span>&#xA0;{</div><div>&#xA0;&#xA0;<span class="string">&apos;trailing&apos;</span>:&#xA0;false</div><div>}));</div></pre></div>

</div>
<div>
<h3 id="wrap"><a href="#wrap" class="fa fa-link"></a><code>_.wrap(value, wrapper)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6105">source</a> <a href="https://www.npmjs.com/package/lodash.wrap">npm package</a></p>
<p>Creates a function that provides <code>value</code> to the wrapper function as its
first argument. Additional arguments provided to the function are appended
to those provided to the wrapper function. The wrapper is executed with
the <code>this</code> binding of the created function.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to wrap.</li>
<li><code>wrapper</code> <em>(Function)</em>: The wrapper function.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>: Returns the new function.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;p&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">wrap</span>(_<span class="delimiter">.</span>escape<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(func<span class="delimiter">,</span>&#xA0;text)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;<span class="string">&apos;&lt;p&gt;&apos;</span>&#xA0;+&#xA0;<span class="name">func</span>(text)&#xA0;+&#xA0;<span class="string">&apos;&lt;/p&gt;&apos;</span>;</div><div>});</div><div>&#xA0;</div><div><span class="name">p</span>(<span class="string">&apos;Fred,&#xA0;Wilma,&#xA0;&amp;&#xA0;Pebbles&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;&lt;p&gt;Fred,&#xA0;Wilma,&#xA0;&amp;amp;&#xA0;Pebbles&lt;/p&gt;&apos;</span></div></pre></div>

</div>
</div>
<div>
<h2><code>&#x201C;Objects&#x201D; Methods</code></h2>
<div>
<h3 id="assign"><a href="#assign" class="fa fa-link"></a><code>_.assign(object, [source], [callback], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2085">source</a> <a href="https://www.npmjs.com/package/lodash.assign">npm package</a></p>
<p>Assigns own enumerable properties of source object(s) to the destination
object. Subsequent sources will overwrite property assignments of previous
sources. If a callback is provided it will be executed to produce the
assigned values. The callback is bound to <code>thisArg</code> and invoked with two
arguments; <em>(objectValue, sourceValue)</em>.</p>
<h4>Aliases</h4>
<p><em>_.extend</em></p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The destination object.</li>
<li><code>[source]</code> <em>(...Object)</em>: The source objects.</li>
<li><code>[callback]</code> <em>(Function)</em>: The function to customize assigning values.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>: Returns the destination object.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">assign</span>({&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span>&#xA0;}<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;employer&apos;</span>:&#xA0;<span class="string">&apos;slate&apos;</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;name&apos;:&#xA0;&apos;fred&apos;,&#xA0;&apos;employer&apos;:&#xA0;&apos;slate&apos;&#xA0;}</span></div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;defaults&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">partialRight</span>(_<span class="delimiter">.</span>assign<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(a<span class="delimiter">,</span>&#xA0;b)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;typeof&#xA0;a&#xA0;==&#xA0;<span class="string">&apos;undefined&apos;</span>&#xA0;?&#xA0;b&#xA0;:&#xA0;a;</div><div>});</div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;object&#xA0;=&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span>&#xA0;};</div><div><span class="name">defaults</span>(object<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;employer&apos;</span>:&#xA0;<span class="string">&apos;slate&apos;</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;name&apos;:&#xA0;&apos;barney&apos;,&#xA0;&apos;employer&apos;:&#xA0;&apos;slate&apos;&#xA0;}</span></div></pre></div>

</div>
<div>
<h3 id="clone"><a href="#clone" class="fa fa-link"></a><code>_.clone(value, [isDeep=false], [callback], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2138">source</a> <a href="https://www.npmjs.com/package/lodash.clone">npm package</a></p>
<p>Creates a clone of <code>value</code>. If <code>isDeep</code> is <code>true</code> nested objects will also
be cloned, otherwise they will be assigned by reference. If a callback
is provided it will be executed to produce the cloned values. If the
callback returns <code>undefined</code> cloning will be handled by the method instead.
The callback is bound to <code>thisArg</code> and invoked with one argument; <em>(value)</em>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to clone.</li>
<li><code>[isDeep=false]</code> <em>(boolean)</em>: Specify a deep clone.</li>
<li><code>[callback]</code> <em>(Function)</em>: The function to customize cloning values.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>: Returns the cloned value.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;[</div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span>&#xA0;}</div><div>];</div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;shallow&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">clone</span>(characters);</div><div>shallow[<span class="numeric">0</span>]&#xA0;===&#xA0;characters[<span class="numeric">0</span>];</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;deep&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">clone</span>(characters<span class="delimiter">,</span>&#xA0;true);</div><div>deep[<span class="numeric">0</span>]&#xA0;===&#xA0;characters[<span class="numeric">0</span>];</div><div><span class="comment">//&#xA0;=&gt;&#xA0;false</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">mixin</span>({</div><div>&#xA0;&#xA0;<span class="string">&apos;clone&apos;</span>:&#xA0;_<span class="delimiter method">.</span><span class="name">partialRight</span>(_<span class="delimiter">.</span>clone<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(value)&#xA0;{</div><div>&#xA0;&#xA0;&#xA0;&#xA0;return&#xA0;_<span class="delimiter method">.</span><span class="name">isElement</span>(value)&#xA0;?&#xA0;value<span class="delimiter method">.</span><span class="support">cloneNode</span>(false)&#xA0;:&#xA0;undefined;</div><div>&#xA0;&#xA0;})</div><div>});</div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;clone&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">clone</span>(<span class="support">document</span><span class="delimiter">.</span><span class="support">body</span>);</div><div>clone<span class="delimiter">.</span><span class="support">childNodes</span><span class="delimiter">.</span><span class="support">length</span>;</div><div><span class="comment">//&#xA0;=&gt;&#xA0;0</span></div></pre></div>

</div>
<div>
<h3 id="cloneDeep"><a href="#cloneDeep" class="fa fa-link"></a><code>_.cloneDeep(value, [callback], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2190">source</a> <a href="https://www.npmjs.com/package/lodash.clonedeep">npm package</a></p>
<p>Creates a deep clone of <code>value</code>. If a callback is provided it will be
executed to produce the cloned values. If the callback returns <code>undefined</code>
cloning will be handled by the method instead. The callback is bound to
<code>thisArg</code> and invoked with one argument; <em>(value)</em>.
<br>
<br>
Note: This method is loosely based on the structured clone algorithm. Functions
and DOM nodes are <strong>not</strong> cloned. The enumerable properties of <code>arguments</code> objects and
objects created by constructors other than <code>Object</code> are cloned to plain <code>Object</code> objects.
See <a href="http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm">http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to deep clone.</li>
<li><code>[callback]</code> <em>(Function)</em>: The function to customize cloning values.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>: Returns the deep cloned value.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;[</div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span>&#xA0;}</div><div>];</div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;deep&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">cloneDeep</span>(characters);</div><div>deep[<span class="numeric">0</span>]&#xA0;===&#xA0;characters[<span class="numeric">0</span>];</div><div><span class="comment">//&#xA0;=&gt;&#xA0;false</span></div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;view&#xA0;=&#xA0;{</div><div>&#xA0;&#xA0;<span class="string">&apos;label&apos;</span>:&#xA0;<span class="string">&apos;docs&apos;</span><span class="delimiter">,</span></div><div>&#xA0;&#xA0;<span class="string">&apos;node&apos;</span>:&#xA0;element</div><div>};</div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;clone&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">cloneDeep</span>(view<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(value)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;_<span class="delimiter method">.</span><span class="name">isElement</span>(value)&#xA0;?&#xA0;value<span class="delimiter method">.</span><span class="support">cloneNode</span>(true)&#xA0;:&#xA0;undefined;</div><div>});</div><div>&#xA0;</div><div>clone<span class="delimiter">.</span>node&#xA0;==&#xA0;view<span class="delimiter">.</span>node;</div><div><span class="comment">//&#xA0;=&gt;&#xA0;false</span></div></pre></div>

</div>
<div>
<h3 id="create"><a href="#create" class="fa fa-link"></a><code>_.create(prototype, [properties])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2225">source</a> <a href="https://www.npmjs.com/package/lodash.create">npm package</a></p>
<p>Creates an object that inherits from the given <code>prototype</code> object. If a
<code>properties</code> object is provided its own enumerable properties are assigned
to the created object.</p>
<h4>Arguments</h4>
<ol>
<li><code>prototype</code> <em>(Object)</em>: The object to inherit from.</li>
<li><code>[properties]</code> <em>(Object)</em>: The properties to assign to the object.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>: Returns the new object.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">function</span>&#xA0;<span class="name">Shape</span>()&#xA0;{</div><div>&#xA0;&#xA0;this<span class="delimiter">.</span><span class="support">x</span>&#xA0;=&#xA0;<span class="numeric">0</span>;</div><div>&#xA0;&#xA0;this<span class="delimiter">.</span><span class="support">y</span>&#xA0;=&#xA0;<span class="numeric">0</span>;</div><div>}</div><div>&#xA0;</div><div><span class="type">function</span>&#xA0;<span class="name">Circle</span>()&#xA0;{</div><div>&#xA0;&#xA0;Shape<span class="delimiter method">.</span><span class="support">call</span>(this);</div><div>}</div><div>&#xA0;</div><div>Circle<span class="delimiter">.</span><span class="support">prototype</span>&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">create</span>(Shape<span class="delimiter">.</span><span class="support">prototype</span><span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;constructor&apos;</span>:&#xA0;Circle&#xA0;});</div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;circle&#xA0;=&#xA0;new&#xA0;<span class="name type">Circle</span>;</div><div>circle&#xA0;instanceof&#xA0;Circle;</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div><div>&#xA0;</div><div>circle&#xA0;instanceof&#xA0;Shape;</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div></pre></div>

</div>
<div>
<h3 id="defaults"><a href="#defaults" class="fa fa-link"></a><code>_.defaults(object, [source])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2250">source</a> <a href="https://www.npmjs.com/package/lodash.defaults">npm package</a></p>
<p>Assigns own enumerable properties of source object(s) to the destination
object for all destination properties that resolve to <code>undefined</code>. Once a
property is set, additional defaults of the same property will be ignored.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The destination object.</li>
<li><code>[source]</code> <em>(...Object)</em>: The source objects.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>: Returns the destination object.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;object&#xA0;=&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span>&#xA0;};</div><div>_<span class="delimiter method">.</span><span class="name">defaults</span>(object<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;employer&apos;</span>:&#xA0;<span class="string">&apos;slate&apos;</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;name&apos;:&#xA0;&apos;barney&apos;,&#xA0;&apos;employer&apos;:&#xA0;&apos;slate&apos;&#xA0;}</span></div></pre></div>

</div>
<div>
<h3 id="findKey"><a href="#findKey" class="fa fa-link"></a><code>_.findKey(object, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2293">source</a> <a href="https://www.npmjs.com/package/lodash.findkey">npm package</a></p>
<p>This method is like <a href="#findIndex"><code>_.findIndex</code></a> except that it returns the key of the
first element that passes the callback check, instead of the element itself.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to search.</li>
<li><code>[callback=identity]</code> <em>(Function|Object|string)</em>: The function called per iteration. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>: Returns the key of the found element, else <code>undefined</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;{</div><div>&#xA0;&#xA0;<span class="string">&apos;barney&apos;</span>:&#xA0;{&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;false&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;<span class="string">&apos;fred&apos;</span>:&#xA0;{&#xA0;&#xA0;&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;true&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;<span class="string">&apos;pebbles&apos;</span>:&#xA0;{&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;false&#xA0;}</div><div>};</div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">findKey</span>(characters<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(chr)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;chr<span class="delimiter">.</span>age&#xA0;&lt;&#xA0;<span class="numeric">40</span>;</div><div>});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;barney&apos;&#xA0;(property&#xA0;order&#xA0;is&#xA0;not&#xA0;guaranteed&#xA0;across&#xA0;environments)</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.where&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">findKey</span>(characters<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">1</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;pebbles&apos;</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.pluck&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">findKey</span>(characters<span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;fred&apos;</span></div></pre></div>

</div>
<div>
<h3 id="findLastKey"><a href="#findLastKey" class="fa fa-link"></a><code>_.findLastKey(object, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2346">source</a> <a href="https://www.npmjs.com/package/lodash.findlastkey">npm package</a></p>
<p>This method is like <a href="#findKey"><code>_.findKey</code></a> except that it iterates over elements
of a <code>collection</code> in the opposite order.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to search.</li>
<li><code>[callback=identity]</code> <em>(Function|Object|string)</em>: The function called per iteration. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>: Returns the key of the found element, else <code>undefined</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;{</div><div>&#xA0;&#xA0;<span class="string">&apos;barney&apos;</span>:&#xA0;{&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;true&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;<span class="string">&apos;fred&apos;</span>:&#xA0;{&#xA0;&#xA0;&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;false&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;<span class="string">&apos;pebbles&apos;</span>:&#xA0;{&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;&#xA0;<span class="string">&apos;blocked&apos;</span>:&#xA0;true&#xA0;}</div><div>};</div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">findLastKey</span>(characters<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(chr)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;chr<span class="delimiter">.</span>age&#xA0;&lt;&#xA0;<span class="numeric">40</span>;</div><div>});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;returns&#xA0;`pebbles`,&#xA0;assuming&#xA0;`_.findKey`&#xA0;returns&#xA0;`barney`</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.where&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">findLastKey</span>(characters<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;fred&apos;</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.pluck&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">findLastKey</span>(characters<span class="delimiter">,</span>&#xA0;<span class="string">&apos;blocked&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;pebbles&apos;</span></div></pre></div>

</div>
<div>
<h3 id="forIn"><a href="#forIn" class="fa fa-link"></a><code>_.forIn(object, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2389">source</a> <a href="https://www.npmjs.com/package/lodash.forin">npm package</a></p>
<p>Iterates over own and inherited enumerable properties of an object,
executing the callback for each property. The callback is bound to <code>thisArg</code>
and invoked with three arguments; <em>(value, key, object)</em>. Callbacks may exit
iteration early by explicitly returning <code>false</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to iterate over.</li>
<li><code>[callback=identity]</code> <em>(Function)</em>: The function called per iteration.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>: Returns <code>object</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">function</span>&#xA0;<span class="name">Shape</span>()&#xA0;{</div><div>&#xA0;&#xA0;this<span class="delimiter">.</span><span class="support">x</span>&#xA0;=&#xA0;<span class="numeric">0</span>;</div><div>&#xA0;&#xA0;this<span class="delimiter">.</span><span class="support">y</span>&#xA0;=&#xA0;<span class="numeric">0</span>;</div><div>}</div><div>&#xA0;</div><div>Shape<span class="delimiter">.</span><span class="support">prototype</span><span class="delimiter method">.</span><span class="name">move</span>&#xA0;=&#xA0;<span class="type">function</span>(x<span class="delimiter">,</span>&#xA0;y)&#xA0;{</div><div>&#xA0;&#xA0;this<span class="delimiter">.</span><span class="support">x</span>&#xA0;+=&#xA0;x;</div><div>&#xA0;&#xA0;this<span class="delimiter">.</span><span class="support">y</span>&#xA0;+=&#xA0;y;</div><div>};</div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">forIn</span>(new&#xA0;<span class="name type">Shape</span><span class="delimiter">,</span>&#xA0;<span class="type">function</span>(value<span class="delimiter">,</span>&#xA0;key)&#xA0;{</div><div>&#xA0;&#xA0;<span class="name type console">console</span><span class="delimiter method">.</span><span class="support console">log</span>(key);</div><div>});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;logs&#xA0;&apos;x&apos;,&#xA0;&apos;y&apos;,&#xA0;and&#xA0;&apos;move&apos;&#xA0;(property&#xA0;order&#xA0;is&#xA0;not&#xA0;guaranteed&#xA0;across&#xA0;environments)</span></div></pre></div>

</div>
<div>
<h3 id="forInRight"><a href="#forInRight" class="fa fa-link"></a><code>_.forInRight(object, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2421">source</a> <a href="https://www.npmjs.com/package/lodash.forinright">npm package</a></p>
<p>This method is like <a href="#forIn"><code>_.forIn</code></a> except that it iterates over elements
of a <code>collection</code> in the opposite order.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to iterate over.</li>
<li><code>[callback=identity]</code> <em>(Function)</em>: The function called per iteration.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>: Returns <code>object</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">function</span>&#xA0;<span class="name">Shape</span>()&#xA0;{</div><div>&#xA0;&#xA0;this<span class="delimiter">.</span><span class="support">x</span>&#xA0;=&#xA0;<span class="numeric">0</span>;</div><div>&#xA0;&#xA0;this<span class="delimiter">.</span><span class="support">y</span>&#xA0;=&#xA0;<span class="numeric">0</span>;</div><div>}</div><div>&#xA0;</div><div>Shape<span class="delimiter">.</span><span class="support">prototype</span><span class="delimiter method">.</span><span class="name">move</span>&#xA0;=&#xA0;<span class="type">function</span>(x<span class="delimiter">,</span>&#xA0;y)&#xA0;{</div><div>&#xA0;&#xA0;this<span class="delimiter">.</span><span class="support">x</span>&#xA0;+=&#xA0;x;</div><div>&#xA0;&#xA0;this<span class="delimiter">.</span><span class="support">y</span>&#xA0;+=&#xA0;y;</div><div>};</div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">forInRight</span>(new&#xA0;<span class="name type">Shape</span><span class="delimiter">,</span>&#xA0;<span class="type">function</span>(value<span class="delimiter">,</span>&#xA0;key)&#xA0;{</div><div>&#xA0;&#xA0;<span class="name type console">console</span><span class="delimiter method">.</span><span class="support console">log</span>(key);</div><div>});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;logs&#xA0;&apos;move&apos;,&#xA0;&apos;y&apos;,&#xA0;and&#xA0;&apos;x&apos;&#xA0;assuming&#xA0;`_.forIn&#xA0;`&#xA0;logs&#xA0;&apos;x&apos;,&#xA0;&apos;y&apos;,&#xA0;and&#xA0;&apos;move&apos;</span></div></pre></div>

</div>
<div>
<h3 id="forOwn"><a href="#forOwn" class="fa fa-link"></a><code>_.forOwn(object, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2459">source</a> <a href="https://www.npmjs.com/package/lodash.forown">npm package</a></p>
<p>Iterates over own enumerable properties of an object, executing the callback
for each property. The callback is bound to <code>thisArg</code> and invoked with three
arguments; <em>(value, key, object)</em>. Callbacks may exit iteration early by
explicitly returning <code>false</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to iterate over.</li>
<li><code>[callback=identity]</code> <em>(Function)</em>: The function called per iteration.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>: Returns <code>object</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">forOwn</span>({&#xA0;<span class="string">&apos;0&apos;</span>:&#xA0;<span class="string">&apos;zero&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;1&apos;</span>:&#xA0;<span class="string">&apos;one&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;length&apos;</span>:&#xA0;<span class="numeric">2</span>&#xA0;}<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(num<span class="delimiter">,</span>&#xA0;key)&#xA0;{</div><div>&#xA0;&#xA0;<span class="name type console">console</span><span class="delimiter method">.</span><span class="support console">log</span>(key);</div><div>});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;logs&#xA0;&apos;0&apos;,&#xA0;&apos;1&apos;,&#xA0;and&#xA0;&apos;length&apos;&#xA0;(property&#xA0;order&#xA0;is&#xA0;not&#xA0;guaranteed&#xA0;across&#xA0;environments)</span></div></pre></div>

</div>
<div>
<h3 id="forOwnRight"><a href="#forOwnRight" class="fa fa-link"></a><code>_.forOwnRight(object, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2479">source</a> <a href="https://www.npmjs.com/package/lodash.forownright">npm package</a></p>
<p>This method is like <a href="#forOwn"><code>_.forOwn</code></a> except that it iterates over elements
of a <code>collection</code> in the opposite order.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to iterate over.</li>
<li><code>[callback=identity]</code> <em>(Function)</em>: The function called per iteration.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>: Returns <code>object</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">forOwnRight</span>({&#xA0;<span class="string">&apos;0&apos;</span>:&#xA0;<span class="string">&apos;zero&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;1&apos;</span>:&#xA0;<span class="string">&apos;one&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;length&apos;</span>:&#xA0;<span class="numeric">2</span>&#xA0;}<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(num<span class="delimiter">,</span>&#xA0;key)&#xA0;{</div><div>&#xA0;&#xA0;<span class="name type console">console</span><span class="delimiter method">.</span><span class="support console">log</span>(key);</div><div>});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;logs&#xA0;&apos;length&apos;,&#xA0;&apos;1&apos;,&#xA0;and&#xA0;&apos;0&apos;&#xA0;assuming&#xA0;`_.forOwn`&#xA0;logs&#xA0;&apos;0&apos;,&#xA0;&apos;1&apos;,&#xA0;and&#xA0;&apos;length&apos;</span></div></pre></div>

</div>
<div>
<h3 id="functions"><a href="#functions" class="fa fa-link"></a><code>_.functions(object)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2508">source</a> <a href="https://www.npmjs.com/package/lodash.functions">npm package</a></p>
<p>Creates a sorted array of property names of all enumerable properties,
own and inherited, of <code>object</code> that have function values.</p>
<h4>Aliases</h4>
<p><em>_.methods</em></p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to inspect.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns an array of property names that have function values.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">functions</span>(_);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[&apos;all&apos;,&#xA0;&apos;any&apos;,&#xA0;&apos;bind&apos;,&#xA0;&apos;bindAll&apos;,&#xA0;&apos;clone&apos;,&#xA0;&apos;compact&apos;,&#xA0;&apos;compose&apos;,&#xA0;...]</span></div></pre></div>

</div>
<div>
<h3 id="has"><a href="#has" class="fa fa-link"></a><code>_.has(object, key)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2533">source</a> <a href="https://www.npmjs.com/package/lodash.has">npm package</a></p>
<p>Checks if the specified property name exists as a direct property of <code>object</code>,
instead of an inherited property.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to inspect.</li>
<li><code>key</code> <em>(string)</em>: The name of the property to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>: Returns <code>true</code> if key is a direct property, else <code>false</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">has</span>({&#xA0;<span class="string">&apos;a&apos;</span>:&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;b&apos;</span>:&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;c&apos;</span>:&#xA0;<span class="numeric">3</span>&#xA0;}<span class="delimiter">,</span>&#xA0;<span class="string">&apos;b&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div></pre></div>

</div>
<div>
<h3 id="invert"><a href="#invert" class="fa fa-link"></a><code>_.invert(object)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2550">source</a> <a href="https://www.npmjs.com/package/lodash.invert">npm package</a></p>
<p>Creates an object composed of the inverted keys and values of the given object.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to invert.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>: Returns the created inverted object.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">invert</span>({&#xA0;<span class="string">&apos;first&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;second&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;fred&apos;:&#xA0;&apos;first&apos;,&#xA0;&apos;barney&apos;:&#xA0;&apos;second&apos;&#xA0;}</span></div></pre></div>

</div>
<div>
<h3 id="isArguments"><a href="#isArguments" class="fa fa-link"></a><code>_.isArguments(value)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L1910">source</a> <a href="https://www.npmjs.com/package/lodash.isarguments">npm package</a></p>
<p>Checks if <code>value</code> is an <code>arguments</code> object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>: Returns <code>true</code> if the <code>value</code> is an <code>arguments</code> object, else <code>false</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>(<span class="type">function</span>()&#xA0;{&#xA0;return&#xA0;_<span class="delimiter method">.</span><span class="name">isArguments</span>(arguments);&#xA0;})(<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">isArguments</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;false</span></div></pre></div>

</div>
<div>
<h3 id="isArray"><a href="#isArray" class="fa fa-link"></a><code>_.isArray(value)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L1939">source</a> <a href="https://www.npmjs.com/package/lodash.isarray">npm package</a></p>
<p>Checks if <code>value</code> is an array.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>: Returns <code>true</code> if the <code>value</code> is an array, else <code>false</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>(<span class="type">function</span>()&#xA0;{&#xA0;return&#xA0;_<span class="delimiter method">.</span><span class="name">isArray</span>(arguments);&#xA0;})();</div><div><span class="comment">//&#xA0;=&gt;&#xA0;false</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">isArray</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div></pre></div>

</div>
<div>
<h3 id="isBoolean"><a href="#isBoolean" class="fa fa-link"></a><code>_.isBoolean(value)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2576">source</a> <a href="https://www.npmjs.com/package/lodash.isboolean">npm package</a></p>
<p>Checks if <code>value</code> is a boolean value.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>: Returns <code>true</code> if the <code>value</code> is a boolean value, else <code>false</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">isBoolean</span>(null);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;false</span></div></pre></div>

</div>
<div>
<h3 id="isDate"><a href="#isDate" class="fa fa-link"></a><code>_.isDate(value)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2594">source</a> <a href="https://www.npmjs.com/package/lodash.isdate">npm package</a></p>
<p>Checks if <code>value</code> is a date.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>: Returns <code>true</code> if the <code>value</code> is a date, else <code>false</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">isDate</span>(new&#xA0;<span class="name type">Date</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div></pre></div>

</div>
<div>
<h3 id="isElement"><a href="#isElement" class="fa fa-link"></a><code>_.isElement(value)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2611">source</a> <a href="https://www.npmjs.com/package/lodash.iselement">npm package</a></p>
<p>Checks if <code>value</code> is a DOM element.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>: Returns <code>true</code> if the <code>value</code> is a DOM element, else <code>false</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">isElement</span>(<span class="support">document</span><span class="delimiter">.</span><span class="support">body</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div></pre></div>

</div>
<div>
<h3 id="isEmpty"><a href="#isEmpty" class="fa fa-link"></a><code>_.isEmpty(value)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2636">source</a> <a href="https://www.npmjs.com/package/lodash.isempty">npm package</a></p>
<p>Checks if <code>value</code> is empty. Arrays, strings, or <code>arguments</code> objects with a
length of <code>0</code> and objects with no own enumerable properties are considered
&quot;empty&quot;.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(Array|Object|string)</em>: The value to inspect.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>: Returns <code>true</code> if the <code>value</code> is empty, else <code>false</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">isEmpty</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;false</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">isEmpty</span>({});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">isEmpty</span>(<span class="string">&apos;&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div></pre></div>

</div>
<div>
<h3 id="isEqual"><a href="#isEqual" class="fa fa-link"></a><code>_.isEqual(a, b, [callback], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2693">source</a> <a href="https://www.npmjs.com/package/lodash.isequal">npm package</a></p>
<p>Performs a deep comparison between two values to determine if they are
equivalent to each other. If a callback is provided it will be executed
to compare values. If the callback returns <code>undefined</code> comparisons will
be handled by the method instead. The callback is bound to <code>thisArg</code> and
invoked with two arguments; <em>(a, b)</em>.</p>
<h4>Arguments</h4>
<ol>
<li><code>a</code> <em>(*)</em>: The value to compare.</li>
<li><code>b</code> <em>(*)</em>: The other value to compare.</li>
<li><code>[callback]</code> <em>(Function)</em>: The function to customize comparing values.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>: Returns <code>true</code> if the values are equivalent, else <code>false</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;object&#xA0;=&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span>&#xA0;};</div><div><span class="type">var</span>&#xA0;copy&#xA0;=&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span>&#xA0;};</div><div>&#xA0;</div><div>object&#xA0;==&#xA0;copy;</div><div><span class="comment">//&#xA0;=&gt;&#xA0;false</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">isEqual</span>(object<span class="delimiter">,</span>&#xA0;copy);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;words&#xA0;=&#xA0;[<span class="string">&apos;hello&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;goodbye&apos;</span>];</div><div><span class="type">var</span>&#xA0;otherWords&#xA0;=&#xA0;[<span class="string">&apos;hi&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;goodbye&apos;</span>];</div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">isEqual</span>(words<span class="delimiter">,</span>&#xA0;otherWords<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(a<span class="delimiter">,</span>&#xA0;b)&#xA0;{</div><div>&#xA0;&#xA0;<span class="type">var</span>&#xA0;reGreet&#xA0;=<span class="string">&#xA0;/^(?:hello|hi)$/i</span><span class="delimiter">,</span></div><div>&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;aGreet&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">isString</span>(a)&#xA0;&amp;&amp;&#xA0;reGreet<span class="delimiter method">.</span><span class="support">test</span>(a)<span class="delimiter">,</span></div><div>&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;bGreet&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">isString</span>(b)&#xA0;&amp;&amp;&#xA0;reGreet<span class="delimiter method">.</span><span class="support">test</span>(b);</div><div>&#xA0;</div><div>&#xA0;&#xA0;return&#xA0;(aGreet&#xA0;||&#xA0;bGreet)&#xA0;?&#xA0;(aGreet&#xA0;==&#xA0;bGreet)&#xA0;:&#xA0;undefined;</div><div>});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div></pre></div>

</div>
<div>
<h3 id="isFinite"><a href="#isFinite" class="fa fa-link"></a><code>_.isFinite(value)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2725">source</a> <a href="https://www.npmjs.com/package/lodash.isfinite">npm package</a></p>
<p>Checks if <code>value</code> is, or can be coerced to, a finite number.
<br>
<br>
Note: This is not the same as native <code>isFinite</code> which will return true for
booleans and empty strings. See <a href="http://es5.github.io/#x15.1.2.5">http://es5.github.io/#x15.1.2.5</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>: Returns <code>true</code> if the <code>value</code> is finite, else <code>false</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">isFinite</span>(-<span class="numeric">101</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">isFinite</span>(<span class="string">&apos;10&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">isFinite</span>(true);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;false</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">isFinite</span>(<span class="string">&apos;&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;false</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">isFinite</span>(Infinity);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;false</span></div></pre></div>

</div>
<div>
<h3 id="isFunction"><a href="#isFunction" class="fa fa-link"></a><code>_.isFunction(value)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2742">source</a> <a href="https://www.npmjs.com/package/lodash.isfunction">npm package</a></p>
<p>Checks if <code>value</code> is a function.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>: Returns <code>true</code> if the <code>value</code> is a function, else <code>false</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">isFunction</span>(_);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div></pre></div>

</div>
<div>
<h3 id="isNaN"><a href="#isNaN" class="fa fa-link"></a><code>_.isNaN(value)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2805">source</a> <a href="https://www.npmjs.com/package/lodash.isnan">npm package</a></p>
<p>Checks if <code>value</code> is <code>NaN</code>.
<br>
<br>
Note: This is not the same as native <code>isNaN</code> which will return <code>true</code> for
<code>undefined</code> and other non-numeric values. See <a href="http://es5.github.io/#x15.1.2.4">http://es5.github.io/#x15.1.2.4</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>: Returns <code>true</code> if the <code>value</code> is <code>NaN</code>, else <code>false</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">isNaN</span>(NaN);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">isNaN</span>(new&#xA0;<span class="name type">Number</span>(NaN));</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div><div>&#xA0;</div><div><span class="support">isNaN</span>(undefined);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">isNaN</span>(undefined);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;false</span></div></pre></div>

</div>
<div>
<h3 id="isNull"><a href="#isNull" class="fa fa-link"></a><code>_.isNull(value)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2827">source</a> <a href="https://www.npmjs.com/package/lodash.isnull">npm package</a></p>
<p>Checks if <code>value</code> is <code>null</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>: Returns <code>true</code> if the <code>value</code> is <code>null</code>, else <code>false</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">isNull</span>(null);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">isNull</span>(undefined);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;false</span></div></pre></div>

</div>
<div>
<h3 id="isNumber"><a href="#isNumber" class="fa fa-link"></a><code>_.isNumber(value)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2846">source</a> <a href="https://www.npmjs.com/package/lodash.isnumber">npm package</a></p>
<p>Checks if <code>value</code> is a number.
<br>
<br>
Note: <code>NaN</code> is considered a number. See <a href="http://es5.github.io/#x8.5">http://es5.github.io/#x8.5</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>: Returns <code>true</code> if the <code>value</code> is a number, else <code>false</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">isNumber</span>(<span class="numeric">8<span class="delimiter">.</span>4</span>&#xA0;*&#xA0;<span class="numeric">5</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div></pre></div>

</div>
<div>
<h3 id="isObject"><a href="#isObject" class="fa fa-link"></a><code>_.isObject(value)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2772">source</a> <a href="https://www.npmjs.com/package/lodash.isobject">npm package</a></p>
<p>Checks if <code>value</code> is the language type of Object.
<em>(e.g. arrays, functions, objects, regexes, <code>new Number(0)</code>, and <code>new String(&apos;&apos;)</code>)</em></p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>: Returns <code>true</code> if the <code>value</code> is an object, else <code>false</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">isObject</span>({});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">isObject</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">isObject</span>(<span class="numeric">1</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;false</span></div></pre></div>

</div>
<div>
<h3 id="isPlainObject"><a href="#isPlainObject" class="fa fa-link"></a><code>_.isPlainObject(value)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2875">source</a> <a href="https://www.npmjs.com/package/lodash.isplainobject">npm package</a></p>
<p>Checks if <code>value</code> is an object created by the <code>Object</code> constructor.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>: Returns <code>true</code> if <code>value</code> is a plain object, else <code>false</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">function</span>&#xA0;<span class="name">Shape</span>()&#xA0;{</div><div>&#xA0;&#xA0;this<span class="delimiter">.</span><span class="support">x</span>&#xA0;=&#xA0;<span class="numeric">0</span>;</div><div>&#xA0;&#xA0;this<span class="delimiter">.</span><span class="support">y</span>&#xA0;=&#xA0;<span class="numeric">0</span>;</div><div>}</div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">isPlainObject</span>(new&#xA0;<span class="name type">Shape</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;false</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">isPlainObject</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span>]);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;false</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">isPlainObject</span>({&#xA0;<span class="string">&apos;x&apos;</span>:&#xA0;<span class="numeric">0</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;y&apos;</span>:&#xA0;<span class="numeric">0</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div></pre></div>

</div>
<div>
<h3 id="isRegExp"><a href="#isRegExp" class="fa fa-link"></a><code>_.isRegExp(value)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2900">source</a> <a href="https://www.npmjs.com/package/lodash.isregexp">npm package</a></p>
<p>Checks if <code>value</code> is a regular expression.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>: Returns <code>true</code> if the <code>value</code> is a regular expression, else <code>false</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">isRegExp</span>(<span class="string">/fred/</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div></pre></div>

</div>
<div>
<h3 id="isString"><a href="#isString" class="fa fa-link"></a><code>_.isString(value)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2917">source</a> <a href="https://www.npmjs.com/package/lodash.isstring">npm package</a></p>
<p>Checks if <code>value</code> is a string.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>: Returns <code>true</code> if the <code>value</code> is a string, else <code>false</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">isString</span>(<span class="string">&apos;fred&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div></pre></div>

</div>
<div>
<h3 id="isUndefined"><a href="#isUndefined" class="fa fa-link"></a><code>_.isUndefined(value)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2935">source</a> <a href="https://www.npmjs.com/package/lodash.isundefined">npm package</a></p>
<p>Checks if <code>value</code> is <code>undefined</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>: Returns <code>true</code> if the <code>value</code> is <code>undefined</code>, else <code>false</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">isUndefined</span>(void&#xA0;<span class="numeric">0</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div></pre></div>

</div>
<div>
<h3 id="keys"><a href="#keys" class="fa fa-link"></a><code>_.keys(object)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L1973">source</a> <a href="https://www.npmjs.com/package/lodash.keys">npm package</a></p>
<p>Creates an array composed of the own enumerable property names of an object.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to inspect.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns an array of property names.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">keys</span>({&#xA0;<span class="string">&apos;one&apos;</span>:&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;two&apos;</span>:&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;three&apos;</span>:&#xA0;<span class="numeric">3</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[&apos;one&apos;,&#xA0;&apos;two&apos;,&#xA0;&apos;three&apos;]&#xA0;(property&#xA0;order&#xA0;is&#xA0;not&#xA0;guaranteed&#xA0;across&#xA0;environments)</span></div></pre></div>

</div>
<div>
<h3 id="mapValues"><a href="#mapValues" class="fa fa-link"></a><code>_.mapValues(object, [callback=identity], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2975">source</a> <a href="https://www.npmjs.com/package/lodash.mapvalues">npm package</a></p>
<p>Creates an object with the same keys as <code>object</code> and values generated by
running each own enumerable property of <code>object</code> through the callback.
The callback is bound to <code>thisArg</code> and invoked with three arguments;
<em>(value, key, object)</em>.
<br>
<br>
If a property name is provided for <code>callback</code> the created &quot;<em>.pluck&quot; style
callback will return the property value of the given element.
<br>
<br>
If an object is provided for <code>callback</code> the created &quot;</em>.where&quot; style callback
will return <code>true</code> for elements that have the properties of the given object,
else <code>false</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to iterate over.</li>
<li><code>[callback=identity]</code> <em>(Function|Object|string)</em>: The function called per iteration. If a property name or object is provided it will be used to create a &quot;<em>.pluck&quot; or &quot;</em>.where&quot; style callback, respectively.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns a new object with values of the results of each <code>callback</code> execution.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">mapValues</span>({&#xA0;<span class="string">&apos;a&apos;</span>:&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;b&apos;</span>:&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;c&apos;</span>:&#xA0;<span class="numeric">3</span>}&#xA0;<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(num)&#xA0;{&#xA0;return&#xA0;num&#xA0;*&#xA0;<span class="numeric">3</span>;&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;a&apos;:&#xA0;3,&#xA0;&apos;b&apos;:&#xA0;6,&#xA0;&apos;c&apos;:&#xA0;9&#xA0;}</span></div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;{</div><div>&#xA0;&#xA0;<span class="string">&apos;fred&apos;</span>:&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;<span class="string">&apos;pebbles&apos;</span>:&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;pebbles&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">1</span>&#xA0;}</div><div>};</div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;&quot;_.pluck&quot;&#xA0;callback&#xA0;shorthand</span></div><div>_<span class="delimiter method">.</span><span class="name">mapValues</span>(characters<span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;fred&apos;:&#xA0;40,&#xA0;&apos;pebbles&apos;:&#xA0;1&#xA0;}</span></div></pre></div>

</div>
<div>
<h3 id="merge"><a href="#merge" class="fa fa-link"></a><code>_.merge(object, [source], [callback], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3036">source</a> <a href="https://www.npmjs.com/package/lodash.merge">npm package</a></p>
<p>Recursively merges own enumerable properties of the source object(s), that
don&apos;t resolve to <code>undefined</code> into the destination object. Subsequent sources
will overwrite property assignments of previous sources. If a callback is
provided it will be executed to produce the merged values of the destination
and source properties. If the callback returns <code>undefined</code> merging will
be handled by the method instead. The callback is bound to <code>thisArg</code> and
invoked with two arguments; <em>(objectValue, sourceValue)</em>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The destination object.</li>
<li><code>[source]</code> <em>(...Object)</em>: The source objects.</li>
<li><code>[callback]</code> <em>(Function)</em>: The function to customize merging properties.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>: Returns the destination object.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;names&#xA0;=&#xA0;{</div><div>&#xA0;&#xA0;<span class="string">&apos;characters&apos;</span>:&#xA0;[</div><div>&#xA0;&#xA0;&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span>&#xA0;}</div><div>&#xA0;&#xA0;]</div><div>};</div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;ages&#xA0;=&#xA0;{</div><div>&#xA0;&#xA0;<span class="string">&apos;characters&apos;</span>:&#xA0;[</div><div>&#xA0;&#xA0;&#xA0;&#xA0;{&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;&#xA0;&#xA0;{&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span>&#xA0;}</div><div>&#xA0;&#xA0;]</div><div>};</div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">merge</span>(names<span class="delimiter">,</span>&#xA0;ages);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;characters&apos;:&#xA0;[{&#xA0;&apos;name&apos;:&#xA0;&apos;barney&apos;,&#xA0;&apos;age&apos;:&#xA0;36&#xA0;},&#xA0;{&#xA0;&apos;name&apos;:&#xA0;&apos;fred&apos;,&#xA0;&apos;age&apos;:&#xA0;40&#xA0;}]&#xA0;}</span></div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;food&#xA0;=&#xA0;{</div><div>&#xA0;&#xA0;<span class="string">&apos;fruits&apos;</span>:&#xA0;[<span class="string">&apos;apple&apos;</span>]<span class="delimiter">,</span></div><div>&#xA0;&#xA0;<span class="string">&apos;vegetables&apos;</span>:&#xA0;[<span class="string">&apos;beet&apos;</span>]</div><div>};</div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;otherFood&#xA0;=&#xA0;{</div><div>&#xA0;&#xA0;<span class="string">&apos;fruits&apos;</span>:&#xA0;[<span class="string">&apos;banana&apos;</span>]<span class="delimiter">,</span></div><div>&#xA0;&#xA0;<span class="string">&apos;vegetables&apos;</span>:&#xA0;[<span class="string">&apos;carrot&apos;</span>]</div><div>};</div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">merge</span>(food<span class="delimiter">,</span>&#xA0;otherFood<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(a<span class="delimiter">,</span>&#xA0;b)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;_<span class="delimiter method">.</span><span class="name">isArray</span>(a)&#xA0;?&#xA0;a<span class="delimiter method">.</span><span class="support">concat</span>(b)&#xA0;:&#xA0;undefined;</div><div>});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;fruits&apos;:&#xA0;[&apos;apple&apos;,&#xA0;&apos;banana&apos;],&#xA0;&apos;vegetables&apos;:&#xA0;[&apos;beet&apos;,&#xA0;&apos;carrot]&#xA0;}</span></div></pre></div>

</div>
<div>
<h3 id="omit"><a href="#omit" class="fa fa-link"></a><code>_.omit(object, [callback], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3092">source</a> <a href="https://www.npmjs.com/package/lodash.omit">npm package</a></p>
<p>Creates a shallow clone of <code>object</code> excluding the specified properties.
Property names may be specified as individual arguments or as arrays of
property names. If a callback is provided it will be executed for each
property of <code>object</code> omitting the properties the callback returns truey
for. The callback is bound to <code>thisArg</code> and invoked with three arguments;
<em>(value, key, object)</em>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The source object.</li>
<li><code>[callback]</code> <em>(...((string|string[])|Function))</em>: The properties to omit or the function called per iteration.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>: Returns an object without the omitted properties.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">omit</span>({&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span>&#xA0;}<span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;name&apos;:&#xA0;&apos;fred&apos;&#xA0;}</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">omit</span>({&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span>&#xA0;}<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(value)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;typeof&#xA0;value&#xA0;==&#xA0;<span class="string">&apos;number&apos;</span>;</div><div>});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;name&apos;:&#xA0;&apos;fred&apos;&#xA0;}</span></div></pre></div>

</div>
<div>
<h3 id="pairs"><a href="#pairs" class="fa fa-link"></a><code>_.pairs(object)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3133">source</a> <a href="https://www.npmjs.com/package/lodash.pairs">npm package</a></p>
<p>Creates a two dimensional array of an object&apos;s key-value pairs,
i.e. <code>[[key1, value1], [key2, value2]]</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to inspect.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns new array of key-value pairs.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">pairs</span>({&#xA0;<span class="string">&apos;barney&apos;</span>:&#xA0;<span class="numeric">36</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;fred&apos;</span>:&#xA0;<span class="numeric">40</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[[&apos;barney&apos;,&#xA0;36],&#xA0;[&apos;fred&apos;,&#xA0;40]]&#xA0;(property&#xA0;order&#xA0;is&#xA0;not&#xA0;guaranteed&#xA0;across&#xA0;environments)</span></div></pre></div>

</div>
<div>
<h3 id="pick"><a href="#pick" class="fa fa-link"></a><code>_.pick(object, [callback], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3173">source</a> <a href="https://www.npmjs.com/package/lodash.pick">npm package</a></p>
<p>Creates a shallow clone of <code>object</code> composed of the specified properties.
Property names may be specified as individual arguments or as arrays of
property names. If a callback is provided it will be executed for each
property of <code>object</code> picking the properties the callback returns truey
for. The callback is bound to <code>thisArg</code> and invoked with three arguments;
<em>(value, key, object)</em>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The source object.</li>
<li><code>[callback]</code> <em>(...((string|string[])|Function))</em>: The function called per iteration or property names to pick, specified as individual property names or arrays of property names.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>: Returns an object composed of the picked properties.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">pick</span>({&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;_userid&apos;</span>:&#xA0;<span class="string">&apos;fred1&apos;</span>&#xA0;}<span class="delimiter">,</span>&#xA0;<span class="string">&apos;name&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;name&apos;:&#xA0;&apos;fred&apos;&#xA0;}</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">pick</span>({&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;_userid&apos;</span>:&#xA0;<span class="string">&apos;fred1&apos;</span>&#xA0;}<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(value<span class="delimiter">,</span>&#xA0;key)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;key<span class="delimiter method">.</span><span class="support">charAt</span>(<span class="numeric">0</span>)&#xA0;!=&#xA0;<span class="string">&apos;_&apos;</span>;</div><div>});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;name&apos;:&#xA0;&apos;fred&apos;&#xA0;}</span></div></pre></div>

</div>
<div>
<h3 id="transform"><a href="#transform" class="fa fa-link"></a><code>_.transform(object, [callback=identity], [accumulator], [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3228">source</a> <a href="https://www.npmjs.com/package/lodash.transform">npm package</a></p>
<p>An alternative to <a href="#reduce"><code>_.reduce</code></a> this method transforms <code>object</code> to a new
<code>accumulator</code> object which is the result of running each of its own
enumerable properties through a callback, with each callback execution
potentially mutating the <code>accumulator</code> object. The callback is bound to
<code>thisArg</code> and invoked with four arguments; <em>(accumulator, value, key, object)</em>.
Callbacks may exit iteration early by explicitly returning <code>false</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Array|Object)</em>: The object to iterate over.</li>
<li><code>[callback=identity]</code> <em>(Function)</em>: The function called per iteration.</li>
<li><code>[accumulator]</code> <em>(*)</em>: The custom accumulator value.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>: Returns the accumulated value.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;squares&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">transform</span>([<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;<span class="numeric">4</span><span class="delimiter">,</span>&#xA0;<span class="numeric">5</span><span class="delimiter">,</span>&#xA0;<span class="numeric">6</span><span class="delimiter">,</span>&#xA0;<span class="numeric">7</span><span class="delimiter">,</span>&#xA0;<span class="numeric">8</span><span class="delimiter">,</span>&#xA0;<span class="numeric">9</span><span class="delimiter">,</span>&#xA0;<span class="numeric">10</span>]<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(result<span class="delimiter">,</span>&#xA0;num)&#xA0;{</div><div>&#xA0;&#xA0;num&#xA0;*=&#xA0;num;</div><div>&#xA0;&#xA0;if&#xA0;(num&#xA0;%&#xA0;<span class="numeric">2</span>)&#xA0;{</div><div>&#xA0;&#xA0;&#xA0;&#xA0;return&#xA0;result<span class="delimiter method">.</span><span class="support">push</span>(num)&#xA0;&lt;&#xA0;<span class="numeric">3</span>;</div><div>&#xA0;&#xA0;}</div><div>});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[1,&#xA0;9,&#xA0;25]</span></div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;mapped&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">transform</span>({&#xA0;<span class="string">&apos;a&apos;</span>:&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;b&apos;</span>:&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;c&apos;</span>:&#xA0;<span class="numeric">3</span>&#xA0;}<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(result<span class="delimiter">,</span>&#xA0;num<span class="delimiter">,</span>&#xA0;key)&#xA0;{</div><div>&#xA0;&#xA0;result[key]&#xA0;=&#xA0;num&#xA0;*&#xA0;<span class="numeric">3</span>;</div><div>});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;{&#xA0;&apos;a&apos;:&#xA0;3,&#xA0;&apos;b&apos;:&#xA0;6,&#xA0;&apos;c&apos;:&#xA0;9&#xA0;}</span></div></pre></div>

</div>
<div>
<h3 id="values"><a href="#values" class="fa fa-link"></a><code>_.values(object)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3262">source</a> <a href="https://www.npmjs.com/package/lodash.values">npm package</a></p>
<p>Creates an array composed of the own enumerable property values of <code>object</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to inspect.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns an array of property values.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">values</span>({&#xA0;<span class="string">&apos;one&apos;</span>:&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;two&apos;</span>:&#xA0;<span class="numeric">2</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;three&apos;</span>:&#xA0;<span class="numeric">3</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[1,&#xA0;2,&#xA0;3]&#xA0;(property&#xA0;order&#xA0;is&#xA0;not&#xA0;guaranteed&#xA0;across&#xA0;environments)</span></div></pre></div>

</div>
</div>
<div>
<h2><code>&#x201C;Utilities&#x201D; Methods</code></h2>
<div>
<h3 id="constant"><a href="#constant" class="fa fa-link"></a><code>_.constant(value)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6126">source</a> <a href="https://www.npmjs.com/package/lodash.constant">npm package</a></p>
<p>Creates a function that returns <code>value</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to return from the new function.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>: Returns the new function.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;object&#xA0;=&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span>&#xA0;};</div><div><span class="type">var</span>&#xA0;getter&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">constant</span>(object);</div><div><span class="name">getter</span>()&#xA0;===&#xA0;object;</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div></pre></div>

</div>
<div>
<h3 id="createCallback"><a href="#createCallback" class="fa fa-link"></a><code>_.createCallback([func=identity], [thisArg], [argCount])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6163">source</a> <a href="https://www.npmjs.com/package/lodash.createcallback">npm package</a></p>
<p>Produces a callback bound to an optional <code>thisArg</code>. If <code>func</code> is a property
name the created callback will return the property value for a given element.
If <code>func</code> is an object the created callback will return <code>true</code> for elements
that contain the equivalent object properties, otherwise it will return <code>false</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>[func=identity]</code> <em>(*)</em>: The value to convert to a callback.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of the created callback.</li>
<li><code>[argCount]</code> <em>(number)</em>: The number of arguments the callback accepts.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>: Returns a callback function.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;[</div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span>&#xA0;}</div><div>];</div><div>&#xA0;</div><div><span class="comment">//&#xA0;wrap&#xA0;to&#xA0;create&#xA0;custom&#xA0;callback&#xA0;shorthands</span></div><div>_<span class="delimiter">.</span>createCallback&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">wrap</span>(_<span class="delimiter">.</span>createCallback<span class="delimiter">,</span>&#xA0;<span class="type">function</span>(func<span class="delimiter">,</span>&#xA0;callback<span class="delimiter">,</span>&#xA0;thisArg)&#xA0;{</div><div>&#xA0;&#xA0;<span class="type">var</span>&#xA0;match&#xA0;=<span class="string">&#xA0;/^(.+?)__([gl]t)(.+)$/</span><span class="delimiter method">.</span><span class="support">exec</span>(callback);</div><div>&#xA0;&#xA0;return&#xA0;!match&#xA0;?&#xA0;<span class="name">func</span>(callback<span class="delimiter">,</span>&#xA0;thisArg)&#xA0;:&#xA0;<span class="type">function</span>(object)&#xA0;{</div><div>&#xA0;&#xA0;&#xA0;&#xA0;return&#xA0;match[<span class="numeric">2</span>]&#xA0;==&#xA0;<span class="string">&apos;gt&apos;</span>&#xA0;?&#xA0;object[match[<span class="numeric">1</span>]]&#xA0;&gt;&#xA0;match[<span class="numeric">3</span>]&#xA0;:&#xA0;object[match[<span class="numeric">1</span>]]&#xA0;&lt;&#xA0;match[<span class="numeric">3</span>];</div><div>&#xA0;&#xA0;};</div><div>});</div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">filter</span>(characters<span class="delimiter">,</span>&#xA0;<span class="string">&apos;age__gt38&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[{&#xA0;&apos;name&apos;:&#xA0;&apos;fred&apos;,&#xA0;&apos;age&apos;:&#xA0;40&#xA0;}]</span></div></pre></div>

</div>
<div>
<h3 id="escape"><a href="#escape" class="fa fa-link"></a><code>_.escape(string)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6212">source</a> <a href="https://www.npmjs.com/package/lodash.escape">npm package</a></p>
<p>Converts the characters <code>&amp;</code>, <code>&lt;</code>, <code>&gt;</code>, <code>&quot;</code>, and <code>&apos;</code> in <code>string</code> to their
corresponding HTML entities.</p>
<h4>Arguments</h4>
<ol>
<li><code>string</code> <em>(string)</em>: The string to escape.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>: Returns the escaped string.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">escape</span>(<span class="string">&apos;Fred,&#xA0;Wilma,&#xA0;&amp;&#xA0;Pebbles&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;Fred,&#xA0;Wilma,&#xA0;&amp;amp;&#xA0;Pebbles&apos;</span></div></pre></div>

</div>
<div>
<h3 id="identity"><a href="#identity" class="fa fa-link"></a><code>_.identity(value)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6230">source</a> <a href="https://www.npmjs.com/package/lodash.identity">npm package</a></p>
<p>This method returns the first argument provided to it.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: Any value.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>: Returns <code>value</code>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;object&#xA0;=&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span>&#xA0;};</div><div>_<span class="delimiter method">.</span><span class="name">identity</span>(object)&#xA0;===&#xA0;object;</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div></pre></div>

</div>
<div>
<h3 id="mixin"><a href="#mixin" class="fa fa-link"></a><code>_.mixin([object=lodash], source, [options])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6262">source</a> <a href="https://www.npmjs.com/package/lodash.mixin">npm package</a></p>
<p>Adds function properties of a source object to the destination object.
If <code>object</code> is a function methods will be added to its prototype as well.</p>
<h4>Arguments</h4>
<ol>
<li><code>[object=lodash]</code> <em>(Function|Object)</em>: object The destination object.</li>
<li><code>source</code> <em>(Object)</em>: The object of functions to add.</li>
<li><code>[options]</code> <em>(Object)</em>: The options object.</li>
<li><code>[options.chain=true]</code> <em>(boolean)</em>: Specify whether the functions added are chainable.</li>
</ol>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">function</span>&#xA0;<span class="name">capitalize</span>(string)&#xA0;{</div><div>&#xA0;&#xA0;return&#xA0;string<span class="delimiter method">.</span><span class="support">charAt</span>(<span class="numeric">0</span>)<span class="delimiter method">.</span><span class="support">toUpperCase</span>()&#xA0;+&#xA0;string<span class="delimiter method">.</span><span class="support">slice</span>(<span class="numeric">1</span>)<span class="delimiter method">.</span><span class="support">toLowerCase</span>();</div><div>}</div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">mixin</span>({&#xA0;<span class="string">&apos;capitalize&apos;</span>:&#xA0;capitalize&#xA0;});</div><div>_<span class="delimiter method">.</span><span class="name">capitalize</span>(<span class="string">&apos;fred&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;Fred&apos;</span></div><div>&#xA0;</div><div><span class="name">_</span>(<span class="string">&apos;fred&apos;</span>)<span class="delimiter method">.</span><span class="name">capitalize</span>()<span class="delimiter">.</span><span class="support">value</span>();</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;Fred&apos;</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">mixin</span>({&#xA0;<span class="string">&apos;capitalize&apos;</span>:&#xA0;capitalize&#xA0;}<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;chain&apos;</span>:&#xA0;false&#xA0;});</div><div><span class="name">_</span>(<span class="string">&apos;fred&apos;</span>)<span class="delimiter method">.</span><span class="name">capitalize</span>();</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;Fred&apos;</span></div></pre></div>

</div>
<div>
<h3 id="noConflict"><a href="#noConflict" class="fa fa-link"></a><code>_.noConflict()</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6318">source</a> <a href="https://www.npmjs.com/package/lodash.noconflict">npm package</a></p>
<p>Reverts the &apos;_&apos; variable to its previous value and returns a reference to
the <code>lodash</code> function.</p>
<h4>Returns</h4>
<p><em>(Function)</em>: Returns the <code>lodash</code> function.</p>
<h4>Example</h4>
<div class="highlight js"><pre><span class="type">var</span>&#xA0;lodash&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">noConflict</span>();</pre></div>

</div>
<div>
<h3 id="noop"><a href="#noop" class="fa fa-link"></a><code>_.noop()</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6335">source</a> <a href="https://www.npmjs.com/package/lodash.noop">npm package</a></p>
<p>A no-operation function.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;object&#xA0;=&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span>&#xA0;};</div><div>_<span class="delimiter method">.</span><span class="name">noop</span>(object)&#xA0;===&#xA0;undefined;</div><div><span class="comment">//&#xA0;=&gt;&#xA0;true</span></div></pre></div>

</div>
<div>
<h3 id="now"><a href="#now" class="fa fa-link"></a><code>_.now</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6352">source</a> <a href="https://www.npmjs.com/package/lodash.now">npm package</a></p>
<p>Gets the number of milliseconds that have elapsed since the Unix epoch
<em>(1 January 1970 00:00:00 UTC)</em>.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;stamp&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">now</span>();</div><div>_<span class="delimiter">.</span><span class="support">defer</span>(<span class="type">function</span>()&#xA0;{&#xA0;<span class="name type console">console</span><span class="delimiter method">.</span><span class="support console">log</span>(_<span class="delimiter method">.</span><span class="name">now</span>()&#xA0;-&#xA0;stamp);&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;logs&#xA0;the&#xA0;number&#xA0;of&#xA0;milliseconds&#xA0;it&#xA0;took&#xA0;for&#xA0;the&#xA0;deferred&#xA0;function&#xA0;to&#xA0;be&#xA0;called</span></div></pre></div>

</div>
<div>
<h3 id="parseInt"><a href="#parseInt" class="fa fa-link"></a><code>_.parseInt(value, [radix])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6375">source</a> <a href="https://www.npmjs.com/package/lodash.parseint">npm package</a></p>
<p>Converts the given value into an integer of the specified radix.
If <code>radix</code> is <code>undefined</code> or <code>0</code> a <code>radix</code> of <code>10</code> is used unless the
<code>value</code> is a hexadecimal, in which case a <code>radix</code> of <code>16</code> is used.
<br>
<br>
Note: This method avoids differences in native ES3 and ES5 <code>parseInt</code>
implementations. See <a href="http://es5.github.io/#E">http://es5.github.io/#E</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(string)</em>: The value to parse.</li>
<li><code>[radix]</code> <em>(number)</em>: The radix used to interpret the value to parse.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>: Returns the new integer value.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">parseInt</span>(<span class="string">&apos;08&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;8</span></div></pre></div>

</div>
<div>
<h3 id="property"><a href="#property" class="fa fa-link"></a><code>_.property(key)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6404">source</a> <a href="https://www.npmjs.com/package/lodash.property">npm package</a></p>
<p>Creates a &quot;_.pluck&quot; style function, which returns the <code>key</code> value of a
given object.</p>
<h4>Arguments</h4>
<ol>
<li><code>key</code> <em>(string)</em>: The name of the property to retrieve.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>: Returns the new function.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;characters&#xA0;=&#xA0;[</div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;&#xA0;&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">40</span>&#xA0;}<span class="delimiter">,</span></div><div>&#xA0;&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;age&apos;</span>:&#xA0;<span class="numeric">36</span>&#xA0;}</div><div>];</div><div>&#xA0;</div><div><span class="type">var</span>&#xA0;getName&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">property</span>(<span class="string">&apos;name&apos;</span>);</div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">map</span>(characters<span class="delimiter">,</span>&#xA0;getName);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[&apos;barney&apos;,&#xA0;&apos;fred&apos;]</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">sortBy</span>(characters<span class="delimiter">,</span>&#xA0;getName);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[{&#xA0;&apos;name&apos;:&#xA0;&apos;barney&apos;,&#xA0;&apos;age&apos;:&#xA0;36&#xA0;},&#xA0;{&#xA0;&apos;name&apos;:&#xA0;&apos;fred&apos;,&#xA0;&#xA0;&#xA0;&apos;age&apos;:&#xA0;40&#xA0;}]</span></div></pre></div>

</div>
<div>
<h3 id="random"><a href="#random" class="fa fa-link"></a><code>_.random([min=0], [max=1], [floating=false])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6437">source</a> <a href="https://www.npmjs.com/package/lodash.random">npm package</a></p>
<p>Produces a random number between <code>min</code> and <code>max</code> <em>(inclusive)</em>. If only one
argument is provided a number between <code>0</code> and the given number will be
returned. If <code>floating</code> is truey or either <code>min</code> or <code>max</code> are floats a
floating-point number will be returned instead of an integer.</p>
<h4>Arguments</h4>
<ol>
<li><code>[min=0]</code> <em>(number)</em>: The minimum possible value.</li>
<li><code>[max=1]</code> <em>(number)</em>: The maximum possible value.</li>
<li><code>[floating=false]</code> <em>(boolean)</em>: Specify returning a floating-point number.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>: Returns a random number.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">random</span>(<span class="numeric">0</span><span class="delimiter">,</span>&#xA0;<span class="numeric">5</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;an&#xA0;integer&#xA0;between&#xA0;0&#xA0;and&#xA0;5</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">random</span>(<span class="numeric">5</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;also&#xA0;an&#xA0;integer&#xA0;between&#xA0;0&#xA0;and&#xA0;5</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">random</span>(<span class="numeric">5</span><span class="delimiter">,</span>&#xA0;true);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;a&#xA0;floating-point&#xA0;number&#xA0;between&#xA0;0&#xA0;and&#xA0;5</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">random</span>(<span class="numeric">1<span class="delimiter">.</span>2</span><span class="delimiter">,</span>&#xA0;<span class="numeric">5<span class="delimiter">.</span>2</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;a&#xA0;floating-point&#xA0;number&#xA0;between&#xA0;1.2&#xA0;and&#xA0;5.2</span></div></pre></div>

</div>
<div>
<h3 id="result"><a href="#result" class="fa fa-link"></a><code>_.result(object, key)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6495">source</a> <a href="https://www.npmjs.com/package/lodash.result">npm package</a></p>
<p>Resolves the value of property <code>key</code> on <code>object</code>. If <code>key</code> is a function
it will be invoked with the <code>this</code> binding of <code>object</code> and its result returned,
else the property value is returned. If <code>object</code> is falsey then <code>undefined</code>
is returned.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to inspect.</li>
<li><code>key</code> <em>(string)</em>: The name of the property to resolve.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>: Returns the resolved value.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;object&#xA0;=&#xA0;{</div><div>&#xA0;&#xA0;<span class="string">&apos;cheese&apos;</span>:&#xA0;<span class="string">&apos;crumpets&apos;</span><span class="delimiter">,</span></div><div>&#xA0;&#xA0;<span class="string">&apos;stuff&apos;</span>:&#xA0;<span class="type">function</span>()&#xA0;{</div><div>&#xA0;&#xA0;&#xA0;&#xA0;return&#xA0;<span class="string">&apos;nonsense&apos;</span>;</div><div>&#xA0;&#xA0;}</div><div>};</div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">result</span>(object<span class="delimiter">,</span>&#xA0;<span class="string">&apos;cheese&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;crumpets&apos;</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">result</span>(object<span class="delimiter">,</span>&#xA0;<span class="string">&apos;stuff&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;nonsense&apos;</span></div></pre></div>

</div>
<div>
<h3 id="runInContext"><a href="#runInContext" class="fa fa-link"></a><code>_.runInContext([context=root])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L469">source</a> <a href="https://www.npmjs.com/package/lodash.runincontext">npm package</a></p>
<p>Create a new <code>lodash</code> function using the given context object.</p>
<h4>Arguments</h4>
<ol>
<li><code>[context=root]</code> <em>(Object)</em>: The context object.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>: Returns the <code>lodash</code> function.</p>

</div>
<div>
<h3 id="template"><a href="#template" class="fa fa-link"></a><code>_.template(text, data, [options], [sourceURL], [variable])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6588">source</a> <a href="https://www.npmjs.com/package/lodash.template">npm package</a></p>
<p>A micro-templating method that handles arbitrary delimiters, preserves
whitespace, and correctly escapes quotes within interpolated code.
<br>
<br>
Note: In the development build, <a href="#template"><code>_.template</code></a> utilizes sourceURLs for easier
debugging. See <a href="http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl">http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl</a>
<br>
<br>
For more information on precompiling templates see:<br>
<a href="https://lodash.com/custom-builds">https://lodash.com/custom-builds</a>
<br>
<br>
For more information on Chrome extension sandboxes see:<br>
<a href="http://developer.chrome.com/stable/extensions/sandboxingEval.html">http://developer.chrome.com/stable/extensions/sandboxingEval.html</a></p>
<h4>Arguments</h4>
<ol>
<li><code>text</code> <em>(string)</em>: The template text.</li>
<li><code>data</code> <em>(Object)</em>: The data object used to populate the text.</li>
<li><code>[options]</code> <em>(Object)</em>: The options object.</li>
<li><code>[options.escape]</code> <em>(RegExp)</em>: The &quot;escape&quot; delimiter.</li>
<li><code>[options.evaluate]</code> <em>(RegExp)</em>: The &quot;evaluate&quot; delimiter.</li>
<li><code>[options.imports]</code> <em>(Object)</em>: An object to import into the template as local variables.</li>
<li><code>[options.interpolate]</code> <em>(RegExp)</em>: The &quot;interpolate&quot; delimiter.</li>
<li><code>[sourceURL]</code> <em>(string)</em>: The sourceURL of the template&apos;s compiled source.</li>
<li><code>[variable]</code> <em>(string)</em>: The data object variable name.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>: Returns a compiled function when no <code>data</code> object is given, else it returns the interpolated text.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="comment">//&#xA0;using&#xA0;the&#xA0;&quot;interpolate&quot;&#xA0;delimiter&#xA0;to&#xA0;create&#xA0;a&#xA0;compiled&#xA0;template</span></div><div><span class="type">var</span>&#xA0;compiled&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">template</span>(<span class="string">&apos;hello&#xA0;&lt;%=&#xA0;name&#xA0;%&gt;&apos;</span>);</div><div><span class="name">compiled</span>({&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;fred&apos;</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;hello&#xA0;fred&apos;</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;the&#xA0;&quot;escape&quot;&#xA0;delimiter&#xA0;to&#xA0;escape&#xA0;HTML&#xA0;in&#xA0;data&#xA0;property&#xA0;values</span></div><div>_<span class="delimiter method">.</span><span class="name">template</span>(<span class="string">&apos;&lt;b&gt;&lt;%-&#xA0;value&#xA0;%&gt;&lt;/b&gt;&apos;</span><span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;value&apos;</span>:&#xA0;<span class="string">&apos;&lt;script&gt;&apos;</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;&lt;b&gt;&amp;lt;script&amp;gt;&lt;/b&gt;&apos;</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;the&#xA0;&quot;evaluate&quot;&#xA0;delimiter&#xA0;to&#xA0;generate&#xA0;HTML</span></div><div><span class="type">var</span>&#xA0;list&#xA0;=&#xA0;<span class="string">&apos;&lt;%&#xA0;_.forEach(people,&#xA0;function(name)&#xA0;{&#xA0;%&gt;&lt;li&gt;&lt;%-&#xA0;name&#xA0;%&gt;&lt;/li&gt;&lt;%&#xA0;});&#xA0;%&gt;&apos;</span>;</div><div>_<span class="delimiter method">.</span><span class="name">template</span>(list<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;people&apos;</span>:&#xA0;[<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;barney&apos;</span>]&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;&lt;li&gt;fred&lt;/li&gt;&lt;li&gt;barney&lt;/li&gt;&apos;</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;the&#xA0;ES6&#xA0;delimiter&#xA0;as&#xA0;an&#xA0;alternative&#xA0;to&#xA0;the&#xA0;default&#xA0;&quot;interpolate&quot;&#xA0;delimiter</span></div><div>_<span class="delimiter method">.</span><span class="name">template</span>(<span class="string">&apos;hello&#xA0;${&#xA0;name&#xA0;}&apos;</span><span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;pebbles&apos;</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;hello&#xA0;pebbles&apos;</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;the&#xA0;internal&#xA0;`print`&#xA0;function&#xA0;in&#xA0;&quot;evaluate&quot;&#xA0;delimiters</span></div><div>_<span class="delimiter method">.</span><span class="name">template</span>(<span class="string">&apos;&lt;%&#xA0;print(&quot;hello&#xA0;&quot;&#xA0;+&#xA0;name);&#xA0;%&gt;!&apos;</span><span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;barney&apos;</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;hello&#xA0;barney!&apos;</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;a&#xA0;custom&#xA0;template&#xA0;delimiters</span></div><div>_<span class="delimiter">.</span>templateSettings&#xA0;=&#xA0;{</div><div>&#xA0;&#xA0;<span class="string">&apos;interpolate&apos;</span>:&#xA0;/{{([\s\S]+?)}}/g</div><div>};</div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">template</span>(<span class="string">&apos;hello&#xA0;{{&#xA0;name&#xA0;}}!&apos;</span><span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;name&apos;</span>:&#xA0;<span class="string">&apos;mustache&apos;</span>&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;hello&#xA0;mustache!&apos;</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;the&#xA0;`imports`&#xA0;option&#xA0;to&#xA0;import&#xA0;jQuery</span></div><div><span class="type">var</span>&#xA0;list&#xA0;=&#xA0;<span class="string">&apos;&lt;%&#xA0;jq.each(people,&#xA0;function(name)&#xA0;{&#xA0;%&gt;&lt;li&gt;&lt;%-&#xA0;name&#xA0;%&gt;&lt;/li&gt;&lt;%&#xA0;});&#xA0;%&gt;&apos;</span>;</div><div>_<span class="delimiter method">.</span><span class="name">template</span>(list<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;people&apos;</span>:&#xA0;[<span class="string">&apos;fred&apos;</span><span class="delimiter">,</span>&#xA0;<span class="string">&apos;barney&apos;</span>]&#xA0;}<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;imports&apos;</span>:&#xA0;{&#xA0;<span class="string">&apos;jq&apos;</span>:&#xA0;jQuery&#xA0;}&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;&lt;li&gt;fred&lt;/li&gt;&lt;li&gt;barney&lt;/li&gt;&apos;</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;the&#xA0;`sourceURL`&#xA0;option&#xA0;to&#xA0;specify&#xA0;a&#xA0;custom&#xA0;sourceURL&#xA0;for&#xA0;the&#xA0;template</span></div><div><span class="type">var</span>&#xA0;compiled&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">template</span>(<span class="string">&apos;hello&#xA0;&lt;%=&#xA0;name&#xA0;%&gt;&apos;</span><span class="delimiter">,</span>&#xA0;null<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;sourceURL&apos;</span>:&#xA0;<span class="string">&apos;/basic/greeting.jst&apos;</span>&#xA0;});</div><div><span class="name">compiled</span>(data);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;find&#xA0;the&#xA0;source&#xA0;of&#xA0;&quot;greeting.jst&quot;&#xA0;under&#xA0;the&#xA0;Sources&#xA0;tab&#xA0;or&#xA0;Resources&#xA0;panel&#xA0;of&#xA0;the&#xA0;web&#xA0;inspector</span></div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;the&#xA0;`variable`&#xA0;option&#xA0;to&#xA0;ensure&#xA0;a&#xA0;with-statement&#xA0;isn&apos;t&#xA0;used&#xA0;in&#xA0;the&#xA0;compiled&#xA0;template</span></div><div><span class="type">var</span>&#xA0;compiled&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">template</span>(<span class="string">&apos;hi&#xA0;&lt;%=&#xA0;data.name&#xA0;%&gt;!&apos;</span><span class="delimiter">,</span>&#xA0;null<span class="delimiter">,</span>&#xA0;{&#xA0;<span class="string">&apos;variable&apos;</span>:&#xA0;<span class="string">&apos;data&apos;</span>&#xA0;});</div><div>compiled<span class="delimiter">.</span><span class="support">source</span>;</div><div><span class="comment">//&#xA0;=&gt;&#xA0;function(data)&#xA0;{</span></div><div>&#xA0;&#xA0;<span class="type">var</span>&#xA0;__t<span class="delimiter">,</span>&#xA0;__p&#xA0;=&#xA0;<span class="string">&apos;&apos;</span><span class="delimiter">,</span>&#xA0;__e&#xA0;=&#xA0;_<span class="delimiter">.</span>escape;</div><div>&#xA0;&#xA0;__p&#xA0;+=&#xA0;<span class="string">&apos;hi&#xA0;&apos;</span>&#xA0;+&#xA0;((__t&#xA0;=&#xA0;(&#xA0;data<span class="delimiter">.</span><span class="support">name</span>&#xA0;))&#xA0;==&#xA0;null&#xA0;?&#xA0;<span class="string">&apos;&apos;</span>&#xA0;:&#xA0;__t)&#xA0;+&#xA0;<span class="string">&apos;!&apos;</span>;</div><div>&#xA0;&#xA0;return&#xA0;__p;</div><div>}</div><div>&#xA0;</div><div><span class="comment">//&#xA0;using&#xA0;the&#xA0;`source`&#xA0;property&#xA0;to&#xA0;inline&#xA0;compiled&#xA0;templates&#xA0;for&#xA0;meaningful</span></div><div><span class="comment">//&#xA0;line&#xA0;numbers&#xA0;in&#xA0;error&#xA0;messages&#xA0;and&#xA0;a&#xA0;stack&#xA0;trace</span></div><div>fs<span class="delimiter method">.</span><span class="name">writeFileSync</span>(path<span class="delimiter method">.</span><span class="support">join</span>(cwd<span class="delimiter">,</span>&#xA0;<span class="string">&apos;jst.js&apos;</span>)<span class="delimiter">,</span>&#xA0;<span class="string">&apos;\</span></div><div><span class="string">&#xA0;&#xA0;var&#xA0;JST&#xA0;=&#xA0;{\</span></div><div><span class="string">&#xA0;&#xA0;&#xA0;&#xA0;&quot;main&quot;:&#xA0;&apos;</span>&#xA0;+&#xA0;_<span class="delimiter method">.</span><span class="name">template</span>(mainText)<span class="delimiter">.</span><span class="support">source</span>&#xA0;+&#xA0;<span class="string">&apos;\</span></div><div><span class="string">&#xA0;&#xA0;};\</span></div><div><span class="string">&apos;</span>);</div></pre></div>

</div>
<div>
<h3 id="times"><a href="#times" class="fa fa-link"></a><code>_.times(n, callback, [thisArg])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6711">source</a> <a href="https://www.npmjs.com/package/lodash.times">npm package</a></p>
<p>Executes the callback <code>n</code> times, returning an array of the results
of each callback execution. The callback is bound to <code>thisArg</code> and invoked
with one argument; <em>(index)</em>.</p>
<h4>Arguments</h4>
<ol>
<li><code>n</code> <em>(number)</em>: The number of times to execute the callback.</li>
<li><code>callback</code> <em>(Function)</em>: The function called per iteration.</li>
<li><code>[thisArg]</code> <em>(*)</em>: The <code>this</code> binding of <code>callback</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>: Returns an array of the results of each <code>callback</code> execution.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div><span class="type">var</span>&#xA0;diceRolls&#xA0;=&#xA0;_<span class="delimiter method">.</span><span class="name">times</span>(<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;_<span class="delimiter method">.</span><span class="name">partial</span>(_<span class="delimiter">.</span>random<span class="delimiter">,</span>&#xA0;<span class="numeric">1</span><span class="delimiter">,</span>&#xA0;<span class="numeric">6</span>));</div><div><span class="comment">//&#xA0;=&gt;&#xA0;[3,&#xA0;6,&#xA0;4]</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">times</span>(<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;<span class="type">function</span>(n)&#xA0;{&#xA0;mage<span class="delimiter method">.</span><span class="name">castSpell</span>(n);&#xA0;});</div><div><span class="comment">//&#xA0;=&gt;&#xA0;calls&#xA0;`mage.castSpell(n)`&#xA0;three&#xA0;times,&#xA0;passing&#xA0;`n`&#xA0;of&#xA0;`0`,&#xA0;`1`,&#xA0;and&#xA0;`2`&#xA0;respectively</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">times</span>(<span class="numeric">3</span><span class="delimiter">,</span>&#xA0;<span class="type">function</span>(n)&#xA0;{&#xA0;this<span class="delimiter method">.</span><span class="name">cast</span>(n);&#xA0;}<span class="delimiter">,</span>&#xA0;mage);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;also&#xA0;calls&#xA0;`mage.castSpell(n)`&#xA0;three&#xA0;times</span></div></pre></div>

</div>
<div>
<h3 id="unescape"><a href="#unescape" class="fa fa-link"></a><code>_.unescape(string)</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6738">source</a> <a href="https://www.npmjs.com/package/lodash.unescape">npm package</a></p>
<p>The inverse of <a href="#escape"><code>_.escape</code></a> this method converts the HTML entities
<code>&amp;amp;</code>, <code>&amp;lt;</code>, <code>&amp;gt;</code>, <code>&amp;quot;</code>, and <code>&amp;#39;</code> in <code>string</code> to their
corresponding characters.</p>
<h4>Arguments</h4>
<ol>
<li><code>string</code> <em>(string)</em>: The string to unescape.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>: Returns the unescaped string.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">unescape</span>(<span class="string">&apos;Fred,&#xA0;Barney&#xA0;&amp;amp;&#xA0;Pebbles&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;Fred,&#xA0;Barney&#xA0;&amp;&#xA0;Pebbles&apos;</span></div></pre></div>

</div>
<div>
<h3 id="uniqueId"><a href="#uniqueId" class="fa fa-link"></a><code>_.uniqueId([prefix])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6758">source</a> <a href="https://www.npmjs.com/package/lodash.uniqueid">npm package</a></p>
<p>Generates a unique ID. If <code>prefix</code> is provided the ID will be appended to it.</p>
<h4>Arguments</h4>
<ol>
<li><code>[prefix]</code> <em>(string)</em>: The value to prefix the ID with.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>: Returns the unique ID.</p>
<h4>Example</h4>
<div class="highlight js"><pre><div>_<span class="delimiter method">.</span><span class="name">uniqueId</span>(<span class="string">&apos;contact_&apos;</span>);</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;contact_104&apos;</span></div><div>&#xA0;</div><div>_<span class="delimiter method">.</span><span class="name">uniqueId</span>();</div><div><span class="comment">//&#xA0;=&gt;&#xA0;&apos;105&apos;</span></div></pre></div>

</div>
</div>
<div>
<h2><code>Properties</code></h2>
<div>
<h3 id="VERSION"><a href="#VERSION" class="fa fa-link"></a><code>_.VERSION</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L7079">source</a></p>
<p>The semantic version number.</p>

</div>
<div>
<h3 id="support"><a href="#support" class="fa fa-link"></a><code>_.support</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L676">source</a></p>
<p>An object used to flag environments features.</p>

</div>
<div>
<h3 id="support-argsClass"><a href="#support-argsClass" class="fa fa-link"></a><code>_.support.argsClass</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L693">source</a></p>
<p>Detect if an <code>arguments</code> object&apos;s [[Class]] is resolvable <em>(all but Firefox &lt; <code>4</code>, IE &lt; <code>9</code>)</em>.</p>

</div>
<div>
<h3 id="support-argsObject"><a href="#support-argsObject" class="fa fa-link"></a><code>_.support.argsObject</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L701">source</a></p>
<p>Detect if <code>arguments</code> objects are <code>Object</code> objects <em>(all but Narwhal and Opera &lt; <code>10.5</code>)</em>.</p>

</div>
<div>
<h3 id="support-enumErrorProps"><a href="#support-enumErrorProps" class="fa fa-link"></a><code>_.support.enumErrorProps</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L710">source</a></p>
<p>Detect if <code>name</code> or <code>message</code> properties of <code>Error.prototype</code> are
enumerable by default. <em>(IE &lt; <code>9</code>, Safari &lt; <code>5.1</code>)</em></p>

</div>
<div>
<h3 id="support-enumPrototypes"><a href="#support-enumPrototypes" class="fa fa-link"></a><code>_.support.enumPrototypes</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L723">source</a></p>
<p>Detect if <code>prototype</code> properties are enumerable by default.
<br>
<br>
Firefox &lt; <code>3.6</code>, Opera &gt; <code>9.50</code> - Opera &lt; <code>11.60</code>, and Safari &lt; <code>5.1</code>
<em>(if the prototype or a property on the prototype has been set)</em>
incorrectly sets a function&apos;s <code>prototype</code> property [[Enumerable]]
value to <code>true</code>.</p>

</div>
<div>
<h3 id="support-funcDecomp"><a href="#support-funcDecomp" class="fa fa-link"></a><code>_.support.funcDecomp</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L732">source</a></p>
<p>Detect if functions can be decompiled by <code>Function#toString</code>
<em>(all but PS3 and older Opera mobile browsers &amp; avoided in Windows <code>8</code> apps)</em>.</p>

</div>
<div>
<h3 id="support-funcNames"><a href="#support-funcNames" class="fa fa-link"></a><code>_.support.funcNames</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L740">source</a></p>
<p>Detect if <code>Function#name</code> is supported <em>(all but IE)</em>.</p>

</div>
<div>
<h3 id="support-nonEnumArgs"><a href="#support-nonEnumArgs" class="fa fa-link"></a><code>_.support.nonEnumArgs</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L749">source</a></p>
<p>Detect if <code>arguments</code> object indexes are non-enumerable
<em>(Firefox &lt; <code>4</code>, IE &lt; <code>9</code>, PhantomJS, Safari &lt; <code>5.1</code>)</em>.</p>

</div>
<div>
<h3 id="support-nonEnumShadows"><a href="#support-nonEnumShadows" class="fa fa-link"></a><code>_.support.nonEnumShadows</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L760">source</a></p>
<p>Detect if properties shadowing those on <code>Object.prototype</code> are non-enumerable.
<br>
<br>
In IE &lt; <code>9</code> an objects own properties, shadowing non-enumerable ones, are
made non-enumerable as well <em>(a.k.a the JScript [[DontEnum]] bug)</em>.</p>

</div>
<div>
<h3 id="support-ownLast"><a href="#support-ownLast" class="fa fa-link"></a><code>_.support.ownLast</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L768">source</a></p>
<p>Detect if own properties are iterated after inherited properties <em>(all but IE &lt; <code>9</code>)</em>.</p>

</div>
<div>
<h3 id="support-spliceObjects"><a href="#support-spliceObjects" class="fa fa-link"></a><code>_.support.spliceObjects</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L782">source</a></p>
<p>Detect if <code>Array#shift</code> and <code>Array#splice</code> augment array-like objects correctly.
<br>
<br>
Firefox &lt; <code>10</code>, IE compatibility mode, and IE &lt; <code>9</code> have buggy Array <code>shift()</code>
and <code>splice()</code> functions that fail to remove the last element, <code>value[0]</code>,
of array-like objects even though the <code>length</code> property is set to <code>0</code>.
The <code>shift()</code> method is buggy in IE <code>8</code> compatibility mode, while <code>splice()</code>
is buggy regardless of mode in IE &lt; <code>9</code> and buggy in compatibility mode in IE <code>9</code>.</p>

</div>
<div>
<h3 id="support-unindexedChars"><a href="#support-unindexedChars" class="fa fa-link"></a><code>_.support.unindexedChars</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L793">source</a></p>
<p>Detect lack of support for accessing string characters by index.
<br>
<br>
IE &lt; <code>8</code> can&apos;t access characters by index and IE <code>8</code> can only access
characters by index on string literals.</p>

</div>
<div>
<h3 id="templateSettings"><a href="#templateSettings" class="fa fa-link"></a><code>_.templateSettings</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L819">source</a> <a href="https://www.npmjs.com/package/lodash.templatesettings">npm package</a></p>
<p>By default, the template delimiters used by Lo-Dash are similar to those in
embedded Ruby <em>(ERB)</em>. Change the following template settings to use alternative
delimiters.</p>

</div>
<div>
<h3 id="templateSettings-escape"><a href="#templateSettings-escape" class="fa fa-link"></a><code>_.templateSettings.escape</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L827">source</a></p>
<p>Used to detect <code>data</code> property values to be HTML-escaped.</p>

</div>
<div>
<h3 id="templateSettings-evaluate"><a href="#templateSettings-evaluate" class="fa fa-link"></a><code>_.templateSettings.evaluate</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L835">source</a></p>
<p>Used to detect code to be evaluated.</p>

</div>
<div>
<h3 id="templateSettings-imports"><a href="#templateSettings-imports" class="fa fa-link"></a><code>_.templateSettings.imports</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L859">source</a></p>
<p>Used to import variables into the compiled template.</p>

</div>
<div>
<h3 id="templateSettings-imports-_"><a href="#templateSettings-imports-_" class="fa fa-link"></a><code>_.templateSettings.imports._</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L867">source</a></p>
<p>A reference to the <code>lodash</code> function.</p>

</div>
<div>
<h3 id="templateSettings-interpolate"><a href="#templateSettings-interpolate" class="fa fa-link"></a><code>_.templateSettings.interpolate</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L843">source</a></p>
<p>Used to detect <code>data</code> property values to inject.</p>

</div>
<div>
<h3 id="templateSettings-variable"><a href="#templateSettings-variable" class="fa fa-link"></a><code>_.templateSettings.variable</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L851">source</a></p>
<p>Used to reference the data object in the template text.</p>

</div>
</div>
</div>
{% endraw %}
